Commit 83747b1
ci: resolve iOS simulator at runtime instead of pinning iPhone 16 (#54)
The `build-and-test` job hardcoded `-destination 'platform=iOS Simulator,
name=iPhone 16'`. When the `macos-latest` runner image rolls forward, that
model is no longer preinstalled (current image ships iPhone 16e / 17 / 17 Pro
/ Air, etc.), so xcodebuild fails destination resolution with exit 70 before
running a single test.
Resolve an available iPhone simulator at runtime via `simctl` + `jq` and pass
it by `id`. A generic destination (`generic/platform=iOS Simulator`) is not an
option here because the job runs `test`, which requires a bootable device.
Claude-Session: https://claude.ai/code/session_01J9mruKG6RSYg6SfPaq6MPG
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent c2e5f5f commit 83747b1
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
35 | | - | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments