ci: build against device SDK — CoreSimulator hangs on external-volume Xcode
Some checks failed
CI / Build · Debug (push) Failing after 33m6s
CI / Build · Release (push) Failing after 41m24s

Simulator-destination builds flap on CoreSimulatorService for an hour then
die. Device SDK with signing disabled gives identical compile coverage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kutesir
2026-07-05 19:18:29 +03:00
parent d62c3511f6
commit 1476906756

View File

@@ -36,33 +36,24 @@ jobs:
- name: Generate Xcode project - name: Generate Xcode project
run: xcodegen generate run: xcodegen generate
- name: Build (${{ matrix.configuration }}, iOS Simulator) # Device SDK, signing disabled: CoreSimulator on the runner Mac is unreliable
# (Xcode on an external volume can't discover simulator runtimes and hangs).
# Compilation coverage is identical; no tests run on simulator yet anyway.
- name: Build (${{ matrix.configuration }}, iOS device SDK)
run: | run: |
set -o pipefail set -o pipefail
xcodebuild \ xcodebuild \
-project Jarvis.xcodeproj \ -project Jarvis.xcodeproj \
-scheme Jarvis \ -scheme Jarvis \
-configuration ${{ matrix.configuration }} \ -configuration ${{ matrix.configuration }} \
-sdk iphonesimulator \ -sdk iphoneos \
-destination 'generic/platform=iOS Simulator' \ -destination 'generic/platform=iOS' \
-derivedDataPath build \ -derivedDataPath build \
COMPILATION_CACHE_ENABLE_CACHING=NO \
CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \ CODE_SIGNING_REQUIRED=NO \
build build
# Compiles the test bundle. No test targets exist yet (see docs/BACKLOG.md #13). # No test targets exist yet (see docs/BACKLOG.md #13). When a JarvisTests
# Replace with `xcodebuild test` once a JarvisTests target is added to project.yml. # target is added, switch this to `xcodebuild test` on a simulator — after
- name: Build for Testing (Debug) # fixing CoreSimulator on the runner (Xcode must live on the boot volume).
if: matrix.configuration == 'Debug'
run: |
set -o pipefail
xcodebuild \
-project Jarvis.xcodeproj \
-scheme Jarvis \
-configuration Debug \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 16' \
-derivedDataPath build \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
build-for-testing