Skip to content

Commit 3d4ee75

Browse files
mtopo27claude
andcommitted
fix(ci): add iOS platform download step to fix missing SDK
The macos-15 runners have Xcode installed but the iOS SDK/platform is not bundled. Adding xcodebuild -downloadPlatform iOS to fetch it. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3e50f9f commit 3d4ee75

File tree

4 files changed

+31
-13
lines changed

4 files changed

+31
-13
lines changed

.github/workflows/ios_emerge_upload_adhoc.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build_adhoc:
10-
runs-on: macos-14
10+
runs-on: macos-15
1111

1212
defaults:
1313
run:
@@ -20,7 +20,10 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Select Xcode version
23-
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
23+
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
24+
25+
- name: Download iOS platform
26+
run: xcodebuild -downloadPlatform iOS
2427

2528
- name: Set up Ruby env
2629
uses: ruby/setup-ruby@v1

.github/workflows/ios_emerge_upload_main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
runs-on: macos-14
9+
runs-on: macos-15
1010

1111
defaults:
1212
run:
@@ -19,7 +19,10 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Select Xcode version
22-
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
22+
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
23+
24+
- name: Download iOS platform
25+
run: xcodebuild -downloadPlatform iOS
2326

2427
- name: Set up Ruby env
2528
uses: ruby/setup-ruby@v1
@@ -52,7 +55,7 @@ jobs:
5255
EMERGE_BUILD_TYPE: release
5356

5457
build_adhoc:
55-
runs-on: macos-14
58+
runs-on: macos-15
5659

5760
defaults:
5861
run:
@@ -65,7 +68,10 @@ jobs:
6568
fetch-depth: 0
6669

6770
- name: Select Xcode version
68-
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
71+
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
72+
73+
- name: Download iOS platform
74+
run: xcodebuild -downloadPlatform iOS
6975

7076
- name: Set up Ruby env
7177
uses: ruby/setup-ruby@v1

.github/workflows/ios_emerge_upload_pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: macos-14
10+
runs-on: macos-15
1111

1212
defaults:
1313
run:
@@ -20,7 +20,10 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Select Xcode version
23-
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
23+
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
24+
25+
- name: Download iOS platform
26+
run: xcodebuild -downloadPlatform iOS
2427

2528
- name: Set up Ruby env
2629
uses: ruby/setup-ruby@v1

.github/workflows/ios_emerge_upload_snapshots.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
upload_emerge_snapshots:
12-
runs-on: macos-14
12+
runs-on: macos-15
1313

1414
defaults:
1515
run:
@@ -22,7 +22,10 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Select Xcode version
25-
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
25+
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
26+
27+
- name: Download iOS platform
28+
run: xcodebuild -downloadPlatform iOS
2629

2730
- name: Set up Ruby env
2831
uses: ruby/setup-ruby@v1
@@ -39,7 +42,7 @@ jobs:
3942
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
4043

4144
upload_swift_snapshot_testing_snapshots:
42-
runs-on: macos-14
45+
runs-on: macos-15
4346
defaults:
4447
run:
4548
working-directory: ./ios
@@ -49,7 +52,10 @@ jobs:
4952
with:
5053
fetch-depth: 0
5154
- name: Select Xcode version
52-
run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
55+
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
56+
57+
- name: Download iOS platform
58+
run: xcodebuild -downloadPlatform iOS
5359
- name: Ruby setup
5460
uses: ruby/setup-ruby@v1
5561
with:
@@ -70,7 +76,7 @@ jobs:
7076
set -o pipefail && xcodebuild test \
7177
-scheme HackerNews \
7278
-sdk iphonesimulator \
73-
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5' \
79+
-destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=18.2' \
7480
-only-testing:HackerNewsTests/SwiftSnapshotTest \
7581
-allowProvisioningUpdates \
7682
-authenticationKeyPath "$AUTH_KEY_PATH" \

0 commit comments

Comments
 (0)