Skip to content

Instantly share code, notes, and snippets.

@LamourBt
Forked from ZevEisenberg/resetAllSimulators.sh
Created January 17, 2018 20:08
Show Gist options
  • Select an option

  • Save LamourBt/acdbbda5fb0f355fac64952ee5677a4b to your computer and use it in GitHub Desktop.

Select an option

Save LamourBt/acdbbda5fb0f355fac64952ee5677a4b 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 '^[-=]' | 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