Skip to content

Commit 7b34542

Browse files
committed
Explicitly install the required platform for CI jobs
1 parent 697f828 commit 7b34542

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -957,10 +957,12 @@ case "$COMMAND" in
957957
echo "Building with Xcode Version $(xcodebuild -version)"
958958
export REALM_EXTRA_BUILD_ARGUMENTS='GCC_GENERATE_DEBUGGING_SYMBOLS=NO -allowProvisioningUpdates'
959959
target="$2"
960-
if [[ "$target" == visionos ]] && (( $(xcode_version_major) < 16 )); then
961-
echo 'Installing visionOS'
962-
xcodebuild -downloadPlatform visionOS
963-
fi
960+
case "$target" in
961+
ios*) xcodebuild -downloadPlatform iOS ;;
962+
tvos*) xcodebuild -downloadPlatform tvOS ;;
963+
visionos*) xcodebuild -downloadPlatform visonOS ;;
964+
watchos*) xcodebuild -downloadPlatform watchOS ;;
965+
esac
964966
sh build.sh "verify-$target"
965967
;;
966968

0 commit comments

Comments
 (0)