Skip to content

Commit

Permalink
Maybe fix device creation ci
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Apr 30, 2024
1 parent d1d5ec1 commit e08c2f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ then
if [ "$(uname -m)" = "arm64" ]; then
title "••••• Darwin: visionOS simulator tests •••••"
title "boot a simulator"
xcrun simctl list devicetypes vision
VISIONOS_DEVICE_TYPE=$(xcrun simctl list devicetypes vision -j | jq -r '.devicetypes[0].identifier')
VISIONOS_RUNTIME_ID=$(xcrun simctl list runtimes | grep visionOS | cut -d ' ' -f 7 | tail -1)
export VISIONOS_SIM_ID=$(xcrun simctl create My-apple-vision-pro com.apple.CoreSimulator.SimDeviceType.Apple-Vision-Pro $VISIONOS_RUNTIME_ID)
export VISIONOS_SIM_ID=$(xcrun simctl create My-apple-vision-pro $VISIONOS_DEVICE_TYPE $VISIONOS_RUNTIME_ID)

xcrun simctl boot $VISIONOS_SIM_ID
tests_sequence_unstable_target ${VISIONOS_SIM_ID} auto-visionos-aarch64-sim
Expand Down

0 comments on commit e08c2f4

Please sign in to comment.