Skip to content

Instantly share code, notes, and snippets.

@karstengresch
Forked from ZevEisenberg/resetAllSimulators.sh
Created January 25, 2018 16:25
Show Gist options
  • Save karstengresch/8b89842ba6a4346e392158c1d99dd159 to your computer and use it in GitHub Desktop.
Save karstengresch/8b89842ba6a4346e392158c1d99dd159 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'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@karstengresch
Copy link
Author

xcrun simctl list devices | grep -v '^[-=]' | 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