文章目录
  1. 1. iPhone Simulator path:
  2. 2. 启动 simulator:

iPhone Simulator path:

Xcode 6.x
/Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app.
Xcode 4.x, 5.x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/

启动 simulator:

xcode6:
xcrun simctl install booted
xcrun simctl install booted /path/to/your.app

1
2
3
4
5
未测试
There are undocumented command line parameters for the iOS Simulator, which can be used for such purposes. The one you are looking for is: -SimulateApplication
An example command line starting up YourFavouriteApp:
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication path_to_your_app/YourFavouriteApp.app/YourFavouriteApp
This will start up your application without any installation and works with iOS Simulator 4.2 at least. You cannot reach the home menu, though.
文章目录
  1. 1. iPhone Simulator path:
  2. 2. 启动 simulator: