【问题标题】:How to boot simulator in headless mode or without window如何以无头模式或无窗口启动模拟器
【发布时间】:2018-05-09 21:38:56
【问题描述】:

在 android 中有一个命令可以启动一个没有头部或窗口的 sim 卡,它占用的内存要少得多,例如

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

iOS sims 有这种模式吗?

谢谢

【问题讨论】:

标签: ios xcode simctl


【解决方案1】:

以无头模式启动模拟器,例如 iPhone 11:

xcrun simctl boot iPhone\ 11

如果您想要所有可用模拟器的列表,请使用以下命令:

instruments -s devices

在任何时候,您都可以通过启动模拟器应用来查看模拟器的 UI:

open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/

【讨论】:

    猜你喜欢
    • 2023-03-31
    • 1970-01-01
    • 1970-01-01
    • 2020-03-13
    • 1970-01-01
    • 2017-02-16
    • 2020-06-08
    相关资源
    最近更新 更多