Skip to content

Commit 32a6775

Browse files
committed
WIP
1 parent 027d263 commit 32a6775

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/e2e-self-hosted.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ jobs:
105105
run: |
106106
echo "=== Building iOS app ==="
107107
108-
# Get the UDID of the booted simulator
109-
SIMULATOR_UDID=$(xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep "Booted" | awk '{print $NF}' | tr -d '()')
108+
# Get the UDID of the booted simulator (extract the UUID from the parentheses)
109+
SIMULATOR_UDID=$(xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep "Booted" | sed 's/.*(\([^)]*\)).*/\1/')
110110
echo "Using simulator UDID: $SIMULATOR_UDID"
111111
112-
if [ -n "$SIMULATOR_UDID" ]; then
112+
if [ -n "$SIMULATOR_UDID" ] && [ "$SIMULATOR_UDID" != "Booted" ]; then
113113
# Build with specific simulator UDID
114114
xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
115115
-scheme Bitkit \
@@ -120,7 +120,7 @@ jobs:
120120
build
121121
else
122122
# Fallback to generic iOS Simulator destination
123-
echo "No booted simulator found, trying generic destination..."
123+
echo "No valid simulator UDID found, trying generic destination..."
124124
xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
125125
-scheme Bitkit \
126126
-configuration Debug \

0 commit comments

Comments
 (0)