Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Last active December 25, 2015 04:39
Show Gist options
  • Select an option

  • Save hokaccha/6918803 to your computer and use it in GitHub Desktop.

Select an option

Save hokaccha/6918803 to your computer and use it in GitHub Desktop.
# usage:
# $ mobile-safari 7.0 http://example.com/
function mobile-safari() {
VERSION=$1
URL=$2
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$1.sdk/Applications/MobileSafari.app/MobileSafari -u $2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment