You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check what iOS runtimes are available with Xcode 16.3
92
+
# Download and install iOS 18 runtime if not available
93
+
xcodebuild -downloadPlatform iOS || true
94
+
86
95
- name: Select Simulator
87
96
run: |
97
+
# List available simulators and boot one
98
+
xcrun simctl list devices available
99
+
88
100
# Get any available iPhone simulator (preferably newer models)
89
101
UDID=$(xcrun simctl list devices available | grep -E "iPhone (1[6-9]|[2-9][0-9])" | head -1 | grep -o '[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}')
90
102
if [ -z "$UDID" ]; then
91
103
echo "No suitable iPhone simulator found!" >&2
104
+
# Fallback: try to get any iPhone simulator
105
+
UDID=$(xcrun simctl list devices available | grep "iPhone" | head -1 | grep -o '[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}')
106
+
fi
107
+
if [ -z "$UDID" ]; then
108
+
echo "No iPhone simulator found at all!" >&2
92
109
exit 1
93
110
fi
94
111
echo "Simulator UDID: $UDID"
112
+
113
+
# Boot the simulator
114
+
xcrun simctl boot "$UDID" || echo "Simulator may already be booted"
0 commit comments