Skip to content

Instantly share code, notes, and snippets.

@vittoriom
Forked from ZevEisenberg/resetAllSimulators.sh
Last active August 29, 2015 14:27
Show Gist options
  • Save vittoriom/4637ae9af23d8b71b4b3 to your computer and use it in GitHub Desktop.
Save vittoriom/4637ae9af23d8b71b4b3 to your computer and use it in GitHub Desktop.
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
xcrun simctl list devices | grep -v '^[-=]' | grep -v 'unavailable' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl erase "{}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment