Skip to content

Commit f45b420

Browse files
committed
test(ios): use dyanmically-detected sim throughout pre-boot script
previously, the simulator to boot and use was dynamically detected, but then the variable wasn't used in all spots, rather the simulator name was incorrectly hard-coded in a few areas
1 parent 4d55c58 commit f45b420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scripts/boot-simulator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ echo "Attempting to boot iOS Simulator $SIM..."
1212
(xcrun simctl boot "$SIM" || true) && open -a Simulator.app
1313

1414
# Is it booted?
15-
xcrun simctl list |grep -i 'iPhone 16 ('|grep -v 'Phone:'|grep -v 'unavailable'|grep -v CoreSimulator|grep Booted
15+
xcrun simctl list |grep -i "$SIM ("|grep -v 'Phone:'|grep -v 'unavailable'|grep -v CoreSimulator|grep Booted
1616

1717
# Are we a Debug or Release build?
1818
BUILDDIR="$(ls -1 ios/build/Build/Products/)"
1919

2020
# Install our app (glob so Release or Debug works)
21-
xcrun simctl install 'iPhone 16' "ios/build/Build/Products/$BUILDDIR/testing.app"
21+
xcrun simctl install "$SIM" "ios/build/Build/Products/$BUILDDIR/testing.app"

0 commit comments

Comments
 (0)