简体   繁体   中英

How to boot simulator in headless mode or without window

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

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

Is there such a mode for iOS sims?

Thanks

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM