File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed
Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -121,27 +121,15 @@ jobs:
121121 echo "Alternative UDID: $SIMULATOR_UDID"
122122 fi
123123
124- if [ -n "$SIMULATOR_UDID" ] && [ "$SIMULATOR_UDID" != "Booted" ] && [ ${#SIMULATOR_UDID} -gt 10 ]; then
125- # Build with specific simulator UDID
126- echo "Building with UDID: $SIMULATOR_UDID"
127- xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
128- -scheme Bitkit \
129- -configuration Debug \
130- -destination "platform=iOS Simulator,id=$SIMULATOR_UDID" \
131- -derivedDataPath DerivedData \
132- -allowProvisioningUpdates \
133- build
134- else
135- # Fallback to generic iOS Simulator destination
136- echo "No valid simulator UDID found, trying generic destination..."
137- xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
138- -scheme Bitkit \
139- -configuration Debug \
140- -destination 'platform=iOS Simulator,name=iPhone 17' \
141- -derivedDataPath DerivedData \
142- -allowProvisioningUpdates \
143- build
144- fi
124+ # Try building with simulator name first (more reliable than UDID)
125+ echo "Building with simulator name: $SIMULATOR_NAME"
126+ xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
127+ -scheme Bitkit \
128+ -configuration Debug \
129+ -destination "platform=iOS Simulator,name=$SIMULATOR_NAME" \
130+ -derivedDataPath DerivedData \
131+ -allowProvisioningUpdates \
132+ build
145133
146134 - name : Prepare app for E2E tests
147135 run : |
You can’t perform that action at this time.
0 commit comments