Skip to content

Commit 742c551

Browse files
committed
ci(codeql): use generic iOS Simulator destination for Swift analyze build
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.
1 parent 37673e3 commit 742c551

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ jobs:
196196
cd ios
197197
bundle install
198198
bundle exec pod install
199-
xcodebuild -workspace ReactNativeSdkExample.xcworkspace -scheme ReactNativeSdkExample -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 16' build
199+
xcodebuild -workspace ReactNativeSdkExample.xcworkspace -scheme ReactNativeSdkExample -configuration Debug -destination 'generic/platform=iOS Simulator' build
200200
201201
- name: Perform CodeQL Analysis
202202
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)