Skip to content

Instantly share code, notes, and snippets.

@elmolm
Last active December 10, 2019 13:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmolm/045e9dd690037cf71a13b376b65bac8d to your computer and use it in GitHub Desktop.
Save elmolm/045e9dd690037cf71a13b376b65bac8d to your computer and use it in GitHub Desktop.
Reset all xcode simulators
...
alias sim_reset="echo -ne 'xcode simulator reset'; osascript -e 'tell application \"iOS Simulator\" to quit'; osascript -e 'tell application \"Simulator\" to quit'; xcrun simctl erase all; echo ' [OK]';";
...
#!/bin/bash
echo -ne 'xcode simulator reset';
osascript -e 'tell application "iOS Simulator" to quit';
osascript -e 'tell application "Simulator" to quit';
xcrun simctl erase all;
echo ' [OK]';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment