Skip to content

Instantly share code, notes, and snippets.

@jmonterroso
Created April 14, 2015 20:15
Show Gist options
  • Save jmonterroso/bb1111a63604ec8b3596 to your computer and use it in GitHub Desktop.
Save jmonterroso/bb1111a63604ec8b3596 to your computer and use it in GitHub Desktop.
Open iOS simulator from terminal

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>

@kingkarki
Copy link

Just run this open -a simulator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment