Skip to content

Instantly share code, notes, and snippets.

@vickeryj
Created March 11, 2014 18:01
Show Gist options
  • Save vickeryj/9491419 to your computer and use it in GitHub Desktop.
Save vickeryj/9491419 to your computer and use it in GitHub Desktop.
Script to reset iOS simulator
tell application "iPhone Simulator"
activate
end tell
tell application "System Events"
tell process "iPhone Simulator"
tell menu bar 1
tell menu bar item "iOs Simulator"
tell menu "iOs Simulator"
click menu item "Reset Content and Settings…"
end tell
end tell
end tell
tell window 1
click button "Reset"
end tell
end tell
end tell
#!/bin/bash
osascript ~/bin/reset_sim
sleep 5
~/Code/ipad-register/integration/framework/charles-install-cert.command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment