Skip to content

Commit 943c738

Browse files
committed
escaped regex
1 parent dcb94e4 commit 943c738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ios.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
3030
3131
# Find first available simulator
32-
device_name=$(xcrun simctl list devices available | grep "iPhone" | head -n 1 | sed -E 's/^[[:space:]]*(.+) \(.+\) \(.+\)$/\1/')
32+
device_name=$(xcrun simctl list devices available | grep "iPhone" | head -n 1 | sed -E 's/^[[:space:]]*(.+) \\(.+\\) \\(.+\\)$/\1/')
3333
3434
if [ -z "$device_name" ]; then
3535
echo "❌ Failed to find a valid iOS device."
@@ -42,4 +42,4 @@ jobs:
4242
xcodebuild test \
4343
-scheme "$scheme" \
4444
-"$filetype_parameter" "$file_to_build" \
45-
-destination "platform=iOS Simulator,name=iPhone 15 Pro"
45+
-destination "platform=iOS Simulator,name=$device_name"

0 commit comments

Comments
 (0)