Xcode 6 - Launch simulator from command line

前端 未结 8 1176
执念已碎
执念已碎 2020-11-28 00:20

I want to launch iPhone simulator from command line.

until now I have been using the below command

/Applications/Xcode.app/Contents/Developer

8条回答
  •  伪装坚强ぢ
    2020-11-28 01:19

    To boot a simulator:

    xcrun simctl boot "iPhone X"
    

    It will boot as a headless mode. To make the simulator visible:

    open -a Simulator
    

    xcrun simctl boot is simpler than xcrun instruments -w. instruments requires the full device name.

提交回复
热议问题