Skip to content

Commit 45cf801

Browse files
committed
fix: Xcode 26 / macOS 26 CI iOS simulator issue
1 parent a7c9888 commit 45cf801

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/build.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,16 @@ else
176176
if [[ "$xcode_major" -gt 16 ]]; then
177177
iphone_simulator_name="iPhone 16e"
178178
fi
179-
ios_flags=(
180-
-destination "platform=iOS Simulator,name=${iphone_simulator_name}"
181-
)
179+
180+
if [[ "$xcode_major" -gt 16 ]]; then
181+
ios_flags=(
182+
-destination "platform=iOS Simulator,name=${iphone_simulator_name},OS=26.2"
183+
)
184+
else
185+
ios_flags=(
186+
-destination "platform=iOS Simulator,name=${iphone_simulator_name}"
187+
)
188+
fi
182189
watchos_flags=(
183190
-destination 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)'
184191
)

0 commit comments

Comments
 (0)