iOS Simulator: Power
ios_simulator_powerBoot or shut down an iOS Simulator to control its power state. Booting waits until the device is ready and can open the Simulator app; shutting down stops it.
Instructions
Boot or shut down a simulator. Booting is the one thing this server will not do for you implicitly — a cold boot takes tens of seconds and puts a window on the user's screen, and it changes which simulator an unqualified call resolves to afterwards. Both directions are idempotent: booting a booted simulator succeeds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The state to put it in. `booted` also waits for it to actually get there. | |
| device | No | Which simulator: its UDID or its name as shown by ios_simulator_list. Omit it when exactly one is booted — that is the normal case, and IOS_SIMULATOR_ID pins it when it is not. Unlike simctl's own `booted`, this never picks arbitrarily between two. | |
| wait_ms | No | How long to wait for a boot to complete before reporting what it saw. | |
| open_window | No | Bring up the Simulator app so the screen is visible. A `boot` on its own is headless, which is fine for an agent and confusing for a person watching. |