XCode iOS builds fail after using AdvancedSecurityCodeqlInit task

Open
#1,899 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions, macos, swift, typescript

Research direction

Start with the attached AdvancedSecurityCodeqlInit.log and xcodebuild.log, comparing the environment and SDK selected before and after the task. Reproduce the Azure DevOps pipeline with and without the AdvancedSecurityCodeqlInit task, then inspect how it affects the subsequent xcode task. Done means the CodeQL task runs while the iOS build selects the iOS SDK and succeeds.

Written by the indexing model from the issue text.

Description

Environment

Version of codeql-action: v2.14.6
Programming Language: Swift
Self-Hosting agent platform: MacOS 13.5.2
Build Target platform: iOS 16.2
Using Azude Devops Services

Issue

After using the AdvancedSecurityCodeqlInit task in our pipeline, the subsequent task which builds our application for iOS (Using the xcode task in Azure Devops) no longer builds correctly.
From what I gather from the logs, after running the task AdvancedSecurityCodeqlInit, xcode no longer builds the correct platform and uses the wrong SDK and fails (uses MacOS platform and SDK, instead of iOS)
Running the same xcodebuild commandline from the terminal yields a successful build.
Running the same pipeline with the AdvancedSecurityCodeql tasks removed also yield a successful build.

Logs

AdvancedSecurityCodeqlInit.log
xcodebuild.log

Dominant language
TypeScript
Stars
1.6k
Forks
493
Avg merge
1d 13h
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-action

All issues in github/codeql-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.