Question or problem
tuist runalways runsxcrun simctl boottwice. Once to install the app on the device and again before running it. The second always fails withError: Unable to boot device in current state: Booted
Expectation
Expected behavior: Tuist should either skip the boot step before launch if the simulator is already booted, or only boot once during the entire run flow.
Context
- Tuist version: x.y.z
Give us some context on what you were trying to do when you stumbled upon the need to create this topic in the community forum.
Reproduction (mandatory for problems)
-
Run
tuist run -scheme <scheme_name> --device "iPhone 17" -
Select a simulator device when prompted
-
Observe the error when it attempts to boot the simulator again before launching.
Error log
Running app com.thetechpack.speakeasy on iPhone 17 Pro
✖ Error
The command `simctl boot 3F838731-A0D4-472B-98DF-C8DC6E78C4AC` exited with error code 149 and message:
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Unable to boot device in current state: Booted
Sorry this didn’t work. Here’s what to try next:
▸ If the error is actionable, address it
▸ If the error is not actionable, let's discuss it in the Troubleshooting & how to
▸ If you are very certain it's a bug, file an issue
▸ Check out the logs at /Users/kennyosele/.local/state/tuist/logs/85AC3726-4D3C-4219-ABFE-CCEEDEAE6AA4.log
Filed an issue on github with a complete log file: `tuist run` always fails with "Unable to boot device in current state: Booted" · Issue #9072 · tuist/tuist · GitHub