Skip to content

Commit 3da8ac5

Browse files
committed
test(ios): lint recommends find vs ls, use first response for build
de-lints the file and solves a problem where locally you cannot test the script if you have built both the release and debug version
1 parent 4769031 commit 3da8ac5

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
@@ -15,7 +15,7 @@ echo "Attempting to boot iOS Simulator $SIM..."
1515
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?
18-
BUILDDIR="$(ls -1 ios/build/Build/Products/)"
18+
BUILDDIR="$( find ios/build/Build/Products -type d |grep 'testing.app$' | head -1)"
1919

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

0 commit comments

Comments
 (0)