iOS Simulator: Restart WebDriverAgent
ios_simulator_restart_wdaStart or restart the WebDriverAgent runner on an iOS Simulator to re-enable UI tree inspection and input control. Use after the runner stops; screenshots and simctl functions stay available.
Instructions
Start the WebDriverAgent runner, or restart it after it has died. Only the UI tree and the input tools need it — screenshots and everything simctl does keep working without it. The runner is started detached so it outlives this conversation, and its output goes to a log file rather than to you. It does not wait: give it fifteen seconds or so, then check ios_simulator_diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port to bind, passed to the runner as USE_PORT. Defaults to IOS_SIMULATOR_WDA_PORT. Two simulators need two ports: they share this Mac's loopback, and a runner with no USE_PORT scans 8100-8199 and silently takes the next free one. | |
| 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. |