From 742c5516fc12805add5368ba032fb5b5321fa084 Mon Sep 17 00:00:00 2001 From: Joao Dordio Date: Tue, 30 Jun 2026 19:58:03 +0100 Subject: [PATCH] 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. --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1de36d092..26503482a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -196,7 +196,7 @@ jobs: cd ios bundle install bundle exec pod install - xcodebuild -workspace ReactNativeSdkExample.xcworkspace -scheme ReactNativeSdkExample -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 16' build + xcodebuild -workspace ReactNativeSdkExample.xcworkspace -scheme ReactNativeSdkExample -configuration Debug -destination 'generic/platform=iOS Simulator' build - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4