ci(codeql): use generic iOS Simulator destination for Swift analyze build#881
Open
joaodordio wants to merge 1 commit into
Open
ci(codeql): use generic iOS Simulator destination for Swift analyze build#881joaodordio wants to merge 1 commit into
joaodordio wants to merge 1 commit into
Conversation
|
Qlty doesn't post analysis or coverage comments for contributors without a seat. An authorized user can grant @joaodordio a seat from this pull request's page in Qlty. |
…uild The Swift CodeQL analyze job runs on macos-15 with Xcode 16.4 and used `-destination 'platform=iOS Simulator,name=iPhone 16'`. Recent runner image revisions (e.g. macos-15-arm64 20260623.0190.1) ship without that named simulator preinstalled, so xcodebuild only sees the placeholder "Any iOS Simulator Device" destination and exits with code 70. The build only needs to compile so the CodeQL Swift extractor can observe it, no booted device is required. Switching to `generic/platform=iOS Simulator` matches the always-available placeholder destination, removes the dependency on which iPhone the runner image happens to ship, and keeps the build green across future image bumps.
a10ddbf to
742c551
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🔹 JIRA Ticket(s) if any
N/A, CI hotfix.
✏️ Description
The Swift CodeQL analyze job (
Build_Analyze_iOS_Examplein.github/workflows/codeql.yml) runs onmacos-15with Xcode 16.4 and was building with:-destination 'platform=iOS Simulator,name=iPhone 16'Recent runner image revisions (e.g. macos-15-arm64
20260623.0190.1) ship without that named simulator preinstalled, so xcodebuild only sees the placeholder "Any iOS Simulator Device" destination and exits with code 70:This breaks CodeQL Swift analysis on every PR and on master.
Fix
Switch the destination to
generic/platform=iOS Simulator. The build only needs to compile so the CodeQL Swift extractor can observe it, no booted device is required. The generic destination matches the always-available "Any iOS Simulator Device" placeholder, removes the dependency on which iPhone the runner image happens to ship, and is robust to future image bumps.Test plan