Skip to content

Instantly share code, notes, and snippets.

@tianying484
Forked from sodabiscuit/xcrun_openurl
Last active August 29, 2015 14:26
Show Gist options
  • Save tianying484/1ec8cfcdb8d1db3eeb6d to your computer and use it in GitHub Desktop.
Save tianying484/1ec8cfcdb8d1db3eeb6d to your computer and use it in GitHub Desktop.
Open Some Application Scheme URL in the Booted iOS Simulator.
#!/bin/sh
xcrun simctl list | grep 'Booted' | awk -F "[()]" '{ for (i=2; i<NF-1; i+=2) print $i }' | xargs -J {} xcrun simctl openurl '{}' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment