Created
March 30, 2015 08:40
-
-
Save albertodebortoli/a9c3d4c76121f5b0677d to your computer and use it in GitHub Desktop.
Reset all iOS simulators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if pgrep "iOS Simulator"; then | |
killall "iOS Simulator" | |
fi | |
if pgrep "Xcode"; then | |
killall "Xcode" | |
fi | |
xcrun simctl list | awk -F "[()]" '{ for (i=2; i<NF; i+=2) print $i }' | grep '^[-A-Z0-9]*$' | xargs -I uuid xcrun simctl erase uuid | true | |
echo $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment