How does JetBrains AppCode launch the iOS Simulator?

前端 未结 6 1946
故里飘歌
故里飘歌 2021-01-30 18:48

I just looked at JetBrains\'s App Code IDE and it seems to be able to launch the iOS Simulator and run applications in it.

When I had to automate the deployment of my pr

6条回答
  •  攒了一身酷
    2021-01-30 19:04

    Not 100% sure this is what your question is about, but I'm able to run an arbitrary Simulator-compiled app whose folder I have on the Desktop (for instance) in the Simulator with the following line in the terminal (all one line, substituting appropriate values for your system):

    /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication 
    /Users/myusername/Desktop/[the alphanumeric app directory name]/MyCompiledAppProject.app/MyCompiledAppProject

    Where that last "MyCompiledAppProject" file is the actual binary that is inside of the package which ends with .app (you'll have to control-click on the .app file and select "Show Package Contents" to see it). This will launch the Simulator if it isn't already open. It could easily be packaged in an AppleScript that takes the newly-compiled app location as a file argument and doesn't require Xcode to be open or xcodebuild to be used.

提交回复
热议问题