Skip to content

Commit e27633b

Browse files
authored
[Infra] Remove -sdk flag from xcodebuild in build.sh (#15565)
1 parent 3c30cd9 commit e27633b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

scripts/build.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,42 +163,35 @@ else
163163
iphone_simulator_name="iPhone 16e"
164164
fi
165165
ios_flags=(
166-
-sdk 'iphonesimulator'
167166
-destination "platform=iOS Simulator,name=${iphone_simulator_name}"
168167
)
169-
watchos_flags=(
170-
-sdk 'watchsimulator'
168+
watchos_flags=(
171169
-destination 'platform=watchOS Simulator,name=Apple Watch Series 10 (42mm)'
172170
)
173171
fi
174172

175173
ios_device_flags=(
176-
-sdk 'iphoneos'
177174
-destination 'generic/platform=iOS'
178175
)
179176

180177
ipad_flags=(
181-
-sdk 'iphonesimulator'
182178
-destination 'platform=iOS Simulator,name=iPad Pro (9.7-inch)'
183179
)
184180

185181
macos_flags=(
186-
-sdk 'macosx'
187182
-destination 'platform=OS X,arch=x86_64'
188183
)
189184
tvos_flags=(
190-
-sdk "appletvsimulator"
191185
-destination 'platform=tvOS Simulator,name=Apple TV'
192186
)
193187
visionos_flags=(
194188
# As of Aug 15, 2025, the default OS "latest" was failing as it matched both
195189
# the visionOS 26 beta and visionOS 2.5 (from Xcode 16.4) simulators;
196190
# explicitly specifying OS=2.5 in destination as a workaround.
197-
-sdk 'xrsimulator'
198191
-destination 'platform=visionOS Simulator,OS=2.5,name=Apple Vision Pro'
199192
)
200193
catalyst_flags=(
201-
ARCHS=x86_64 VALID_ARCHS=x86_64 SUPPORTS_MACCATALYST=YES -sdk macosx
194+
ARCHS=x86_64 VALID_ARCHS=x86_64 SUPPORTS_MACCATALYST=YES
202195
-destination platform="macOS,variant=Mac Catalyst,arch=x86_64" TARGETED_DEVICE_FAMILY=2
203196
CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
204197
)

0 commit comments

Comments
 (0)