Skip to content

Commit 66483af

Browse files
authored
Pick visionOS version for Xcode 16.2 (#3307)
Motivation: The nightly visionOS tests are failing because there are too many simulators matching the given destination selector. Modifications: - On Xcode 16.2 use visionOS 2.3 Result: Nightly CI passes
1 parent 344db24 commit 66483af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/macos_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ jobs:
367367
run: /usr/bin/xcodebuild -quiet -scheme ${BUILD_SCHEME} -destination "generic/platform=visionos" build
368368
- name: visionOS test # arm only
369369
if: '!cancelled() && inputs.visionos_xcode_test_enabled'
370-
run: /usr/bin/xcodebuild -quiet -scheme ${BUILD_SCHEME} -destination "name=Apple Vision Pro" test
370+
run: TARGET_OS=""; if [ "$XCODE_VERSION" = "16.2" ]; then TARGET_OS=",OS=2.3"; fi && /usr/bin/xcodebuild -quiet -scheme ${BUILD_SCHEME} -destination "name=Apple Vision Pro$TARGET_OS" test
371371
env:
372372
XCODE_VERSION: ${{ matrix.config.xcode_version }}
373373
DEVELOPER_DIR: "/Applications/${{ matrix.config.xcode_app }}"

0 commit comments

Comments
 (0)