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