Skip to content

Instantly share code, notes, and snippets.

@thiphariel
Created October 4, 2017 08:02
Show Gist options
  • Save thiphariel/cf9b905f10e9a79c471b07e69d3b8924 to your computer and use it in GitHub Desktop.
Save thiphariel/cf9b905f10e9a79c471b07e69d3b8924 to your computer and use it in GitHub Desktop.
iOS simulator command line
ios() {
# Try if an argument is provided, else, launch an iPhone 8 simulator
if [ -z "$1" ]; then
SIMULATOR_NAME="iPhone 8"
else
SIMULATOR_NAME=$1
fi
xcrun simctl boot SIMULATOR_NAME
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment