@@ -253,6 +253,28 @@ jobs:
253253 with :
254254 xcode-version : ' 26'
255255
256+ - name : Boot iOS simulator
257+ run : |
258+ # Pick whatever iPhone simulator the runner actually has, so this
259+ # doesn't break each time the Xcode/runner image bumps the model.
260+ SIMULATOR_UDID=$(xcrun simctl list devices available \
261+ | grep -Eo 'iPhone[^(]*\([A-Fa-f0-9-]{36}\)' \
262+ | grep -Eo '[A-Fa-f0-9-]{36}' | head -n 1)
263+ if [ -z "$SIMULATOR_UDID" ]; then
264+ echo "ERROR: no available iPhone simulator found"
265+ xcrun simctl list devices available
266+ exit 1
267+ fi
268+ echo "Using simulator: $SIMULATOR_UDID"
269+ xcrun simctl boot "$SIMULATOR_UDID" 2>/dev/null || true
270+ # Wait for full boot before configuring the simulator
271+ xcrun simctl bootstatus "$SIMULATOR_UDID" -b
272+ # Disable UIKit animations to reduce Maestro timing flakiness.
273+ # Target the UDID we just booted, not `booted` — if the runner has
274+ # another simulator up, `booted` is ambiguous (simctl errors on
275+ # multiple) and could configure the wrong device.
276+ xcrun simctl spawn "$SIMULATOR_UDID" defaults write com.apple.UIKit UIAnimationDragCoefficient -float 0 || true
277+
256278 - name : Install Flutter
257279 uses : subosito/flutter-action@v2
258280 with :
@@ -314,25 +336,6 @@ jobs:
314336 CODE_SIGNING_ALLOWED=NO \
315337 build
316338
317- - name : Boot iOS simulator
318- run : |
319- # Pick whatever iPhone simulator the runner actually has, so this
320- # doesn't break each time the Xcode/runner image bumps the model.
321- SIMULATOR_UDID=$(xcrun simctl list devices available \
322- | grep -Eo 'iPhone[^(]*\([A-Fa-f0-9-]{36}\)' \
323- | grep -Eo '[A-Fa-f0-9-]{36}' | head -n 1)
324- if [ -z "$SIMULATOR_UDID" ]; then
325- echo "ERROR: no available iPhone simulator found"
326- xcrun simctl list devices available
327- exit 1
328- fi
329- echo "Using simulator: $SIMULATOR_UDID"
330- xcrun simctl boot "$SIMULATOR_UDID" 2>/dev/null || true
331- # Wait for full boot before configuring the simulator
332- xcrun simctl bootstatus "$SIMULATOR_UDID" -b
333- # Disable UIKit animations to reduce Maestro timing flakiness
334- xcrun simctl spawn booted defaults write com.apple.UIKit UIAnimationDragCoefficient -float 0 || true
335-
336339 - name : Install app on simulator
337340 run : |
338341 APP_PATH=$(find packages/reown_walletkit/example/build/ios-ddcache \
0 commit comments