Created
October 4, 2017 08:02
-
-
Save thiphariel/cf9b905f10e9a79c471b07e69d3b8924 to your computer and use it in GitHub Desktop.
iOS simulator command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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