Last active
May 9, 2018 16:17
-
-
Save dillonhafer/17315f1adc9838854949edf173bdf69d to your computer and use it in GitHub Desktop.
List running simulators for use with react native CLI
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
current=$(xcrun simctl list devices | grep Booted | sed 's/^ *//;s/([A-F0-9]\{8\}.*//;s/ *$//' | head -n1) | |
react-native run-ios --simulator="$current" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment