Skip to content

Commit ceabbe5

Browse files
committed
WIP
1 parent 32a6775 commit ceabbe5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,25 @@ jobs:
105105
run: |
106106
echo "=== Building iOS app ==="
107107
108+
# Debug: Show the exact simulator line
109+
echo "=== Debug: Simulator line ==="
110+
xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep "Booted"
111+
echo "=== End Debug ==="
112+
108113
# Get the UDID of the booted simulator (extract the UUID from the parentheses)
109114
SIMULATOR_UDID=$(xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep "Booted" | sed 's/.*(\([^)]*\)).*/\1/')
110115
echo "Using simulator UDID: $SIMULATOR_UDID"
111116
112-
if [ -n "$SIMULATOR_UDID" ] && [ "$SIMULATOR_UDID" != "Booted" ]; then
117+
# Try alternative extraction method
118+
if [ -z "$SIMULATOR_UDID" ] || [ "$SIMULATOR_UDID" = "Booted" ]; then
119+
echo "Trying alternative UDID extraction..."
120+
SIMULATOR_UDID=$(xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep "Booted" | awk -F'[()]' '{print $2}')
121+
echo "Alternative UDID: $SIMULATOR_UDID"
122+
fi
123+
124+
if [ -n "$SIMULATOR_UDID" ] && [ "$SIMULATOR_UDID" != "Booted" ] && [ ${#SIMULATOR_UDID} -gt 10 ]; then
113125
# Build with specific simulator UDID
126+
echo "Building with UDID: $SIMULATOR_UDID"
114127
xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
115128
-scheme Bitkit \
116129
-configuration Debug \

0 commit comments

Comments
 (0)