3

In android there is a command to boot up a sim without a head or window which takes up significantly less ram e.g.

emulator -avd Pixel2Four_API_27 -no-window -no-audio -no-snapshot-load

Is there such a mode for iOS sims?

Thanks

the_prole
  • 7,471
  • 14
  • 64
  • 141
  • Possible duplicate of [Don't launch simulator when running unittests](https://stackoverflow.com/questions/18134670/dont-launch-simulator-when-running-unittests) – CodeBender May 09 '18 at 22:37

1 Answers1

1

To launch a simulator in headless mode, for example an iPhone 11 :

xcrun simctl boot iPhone\ 11

If you want the list of all simulator available, use this command :

instruments -s devices

At any moment, you can see the UI of your simulator by launching the simulator app :

open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/
Kevin ABRIOUX
  • 14,731
  • 9
  • 87
  • 84