0

In xcrun simctl documentation there is an entry:

xcrun simctl shutdown booted - Shutdown a device

Bun when I call it from command line, the simulator is not actually shut down but is freezed instead.

How this could be solved?

The only workaround I found is to kill the simulator by its Process ID.

killall "Simluator"
Andrii Abramov
  • 7,967
  • 8
  • 55
  • 79

1 Answers1

0

Simulator.app predates CoreSimulator and still assumes that it owns the entire boot lifecycle. You should only use 'simctl shutdown' for devices that you booted via 'simctl boot'.

Jeremy Huddleston Sequoia
  • 21,715
  • 5
  • 69
  • 82
  • Could you give me an example how to properly launch Simulator using `simctl boot`? – Andrii Abramov Mar 02 '17 at 13:33
  • 1
    Simulator.app will only work correctly with devices where it owns the lifecycle; we do not currently support mixing simctl boot / simctl shutdown and Simulator.app. Most other simctl commands work with a device started by Simulator.app. – russbishop Mar 05 '17 at 02:10