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
# Get any available iPhone simulator (preferably newer models)
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\}')
102
+
if [ -z "$UDID" ]; then
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
89
107
if [ -z "$UDID" ]; then
90
-
echo "Simulator not found!" >&2
108
+
echo "No iPhone simulator found at all!" >&2
91
109
exit 1
92
110
fi
93
111
echo "Simulator UDID: $UDID"
112
+
113
+
# Boot the simulator
114
+
xcrun simctl boot "$UDID" || echo "Simulator may already be booted"
115
+
sleep 3
116
+
94
117
echo "SIMULATOR_UDID=$UDID" >> $GITHUB_ENV
95
-
118
+
96
119
- name: Install swiftformat
97
120
run: brew install swiftformat
98
121
99
122
- name: Build bindings
100
123
run: sh packages/sdk-platforms/rust/zksync-sso/crates/ffi/build-swift-framework-ios-ci.sh
0 commit comments