Skip to content

Commit 8bf3565

Browse files
jpnurmiclaude
andcommitted
ci: pre-boot iOS simulator before xharness in CI
xharness/mlaunch's internal boot sequence (shutdown, disable watchdogs, reboot) is flaky on CI, causing simctl launch to hang. Pre-booting the simulator with simctl boot/bootstatus avoids this by ensuring it's fully ready before xharness runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fc8da5c commit 8bf3565

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/device-test.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ try
6464

6565
$udid = Get-IosSimulatorUdid -Verbose
6666
if ($udid) {
67+
if ($CI) {
68+
Write-Host "Pre-booting simulator $udid..."
69+
xcrun simctl boot $udid 2>&1 | Write-Host
70+
xcrun simctl bootstatus $udid 2>&1 | Write-Host
71+
}
6772
$arguments += @('--device', $udid)
6873
} else {
6974
Write-Host "No suitable simulator found; proceeding without a specific --device"

0 commit comments

Comments
 (0)