xcodebuild timed out waiting for the simulator

xcodebuild aborts with a timeout waiting for the simulator to boot or to be ready, instead of running the tests.

Strong fit Likely class: boot/readiness timeout · Updated

Symptom

The run gets far enough to start bringing up a simulator, then xcodebuild gives up with a timeout — it waited for the device to boot or become ready and the deadline passed before that happened.

What it usually looks like

Why it happens / likely failure classes

A boot or readiness step did not finish inside the allotted time:

Quick checks

# Boot it yourself and time how long it actually takes to be ready
time (xcrun simctl boot <UDID>; xcrun simctl bootstatus <UDID> -b)

# Is it stuck in Booting, or does it reach Booted?
xcrun simctl list devices | grep -i 'boot'

# Anything else hammering the subsystem while you boot?
pgrep -lf 'xcodebuild|simctl|Simulator'

If a manual boot takes longer than the timeout your run allows, the device is simply slow to become ready — that is the thing to address.

Manual mitigations

When XCSteward may help

Bounding and verifying the boot/readiness window is a core design goal:

Worth testing against this class of failure, especially if timeouts cluster under load or after cold starts.

When XCSteward probably will not help

Common questions

What does "xcodebuild timed out waiting for the simulator" usually mean?
It usually points to boot/readiness timeout. xcodebuild aborts with a timeout waiting for the simulator to boot or to be ready, instead of running the tests. Start by checking simulator readiness, destination selection, CoreSimulator/simctl responsiveness, and whether another xcodebuild, simctl, or Simulator process is already active before treating it as a test-code failure.
Can XCSteward help with "xcodebuild timed out waiting for the simulator"?
This is a strong fit when the failure is operational: simulator readiness, destination resolution, CoreSimulator responsiveness, cleanup, timeouts, or local concurrency. XCSteward may help by making those phases bounded, serialized, and easier to inspect. It will not fix broken tests, code signing, missing runtimes, or vendor image bugs.
What should I check first?
Check whether xcrun simctl commands return promptly, whether xcodebuild can resolve a concrete simulator destination, whether the device is truly ready rather than merely Booted, and whether concurrent agents, scripts, or manual runs are touching the same simulator subsystem.