Skip to content

Commit 444d056

Browse files
fix: pin Xcode 26.0 and simulator runtime for iOS CI
Select Xcode 26.0 and download the iOS simulator runtime before building. Pin the simulator destination to OS=26.0.1 to match. This aims to fix sporadic issues where the sim cannot be found on the runner.
1 parent ce893d4 commit 444d056

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ jobs:
8888
verify-ios:
8989
runs-on: macos-latest
9090
steps:
91+
- name: Select Xcode
92+
run: sudo xcode-select --switch /Applications/Xcode_26.0.app
93+
94+
- name: Prepare simulator runtime
95+
run: |
96+
xcrun simctl list > /dev/null
97+
xcodebuild -downloadPlatform iOS
98+
9199
- name: Checkout
92100
uses: actions/checkout@v4
93101
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"scripts": {
4242
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
43-
"verify:ios": "set -o pipefail && cd ios && pod install && xcodebuild clean build test -workspace Plugin.xcworkspace -scheme Plugin -destination \"platform=iOS Simulator,name=iPhone 17\" | xcpretty && cd ..",
43+
"verify:ios": "set -o pipefail && cd ios && pod install && xcodebuild clean build test -workspace Plugin.xcworkspace -scheme Plugin -destination \"platform=iOS Simulator,name=iPhone 17,OS=26.0.1\" | xcpretty && cd ..",
4444
"verify:android": "cd android && ./gradlew clean build test && cd ..",
4545
"verify:web": "npm run build",
4646
"lint": "npm run eslint && npm run prettier -- --check && npm run lint:ios",

0 commit comments

Comments
 (0)