Skip to content

Commit 5e436a7

Browse files
authored
[Infra] Fail on Xcode 15 builds (#14719)
1 parent 4697163 commit 5e436a7

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

scripts/build.sh

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -151,25 +151,9 @@ function CheckUnexpectedFailures() {
151151
fi
152152
}
153153

154-
# TODO(ncooke3): Xcode 16 – remove -lt 15 after migration
155-
if [[ "$xcode_major" -lt 15 ]]; then
156-
ios_flags=(
157-
-sdk 'iphonesimulator'
158-
-destination 'platform=iOS Simulator,name=iPhone 14'
159-
)
160-
watchos_flags=(
161-
-sdk 'watchsimulator'
162-
-destination 'platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)'
163-
)
164-
elif [[ "$xcode_major" -lt 16 ]]; then
165-
ios_flags=(
166-
-sdk 'iphonesimulator'
167-
-destination 'platform=iOS Simulator,name=iPhone 15'
168-
)
169-
watchos_flags=(
170-
-sdk 'watchsimulator'
171-
-destination 'platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)'
172-
)
154+
if [[ "$xcode_major" -lt 16 && "$method" != "cmake" ]]; then
155+
echo "Unsupported Xcode major version being used: $xcode_major"
156+
exit 1
173157
else
174158
ios_flags=(
175159
-sdk 'iphonesimulator'

0 commit comments

Comments
 (0)