Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions appium/scripts/run-local/runtime.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env bash

# Xcode 27 replaced Simulator.app with DeviceHub.app. The window is only for
# watching the run; simctl boot is what matters, so never fail on it.
open_simulator_ui() {
open -a Simulator 2>/dev/null || open -a DeviceHub 2>/dev/null || true
}

start_ios_simulator() {
if [[ -n "$UDID" ]]; then
if xcrun simctl list devices booted 2>/dev/null | grep -q "$UDID"; then
Expand All @@ -9,7 +15,7 @@ start_ios_simulator() {

info "Booting simulator '${IOS_SIMULATOR}' ($UDID)..."
xcrun simctl boot "$UDID" 2>/dev/null || true
open -a Simulator
open_simulator_ui
info "Waiting for simulator..."
xcrun simctl bootstatus "$UDID" -b >/dev/null
info "Simulator ready"
Expand Down Expand Up @@ -95,7 +101,7 @@ for ver, rt, avail in sorted(runtimes, reverse=True):

info "Booting simulator '$IOS_SIMULATOR' ($UDID)..."
xcrun simctl boot "$UDID" 2>/dev/null || true
open -a Simulator
open_simulator_ui

info "Waiting for simulator..."
xcrun simctl bootstatus "$UDID" -b >/dev/null
Expand Down
Loading