Xcode 6 - Launch simulator from command line

前端 未结 8 1150
执念已碎
执念已碎 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:22

    Run this command. The app will be restarted followed by changes. No need to rebuild it again.

    ios-sim "launch" "/Library/WebServer/Documents/testapp/build/iphone/build/Debug-iphonesimulator/test.app" "--devicetypeid" "iPad-2" "--exit";
    

    For devicetypeid list:

    ios-sim showdevicetypes
    

提交回复
热议问题