File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments