Skip to content

Instantly share code, notes, and snippets.

@shahdhiren
Last active October 24, 2022 16:25
Show Gist options
  • Save shahdhiren/78c0a6b7c26b578c197b22850498f38b to your computer and use it in GitHub Desktop.
Save shahdhiren/78c0a6b7c26b578c197b22850498f38b to your computer and use it in GitHub Desktop.
Install iOS app on simulator
Apple has introduced an interesting tool with Xcode 6!
simctl
simclt allows you to control the simulators running
run xcrun simctl to get the list of available subcommands. Lots of new options to play around.
Now to do what I wanted. Here is the command to launch simulator
xcrun instruments -w "iPhone 5 (8.0 Simulator)"
-w is to provide device type and to get the list of available devices, just execute this
xcrun instruments -s
After launching the simulator you can control it using simctl
To install you app
xcrun simctl install booted <app path>
To launch the app
xcrun simctl launch booted <app identifier>
Src: http://stackoverflow.com/questions/26031601/xcode-6-launch-simulator-from-command-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment