Skip to content

Instantly share code, notes, and snippets.

@dillonhafer
Last active May 9, 2018 16:17
Show Gist options
  • Save dillonhafer/17315f1adc9838854949edf173bdf69d to your computer and use it in GitHub Desktop.
Save dillonhafer/17315f1adc9838854949edf173bdf69d to your computer and use it in GitHub Desktop.
List running simulators for use with react native CLI
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