Last active
December 23, 2024 19:57
-
Star
(139)
You must be signed in to star a gist -
Fork
(17)
You must be signed in to fork a gist
-
-
Save ZevEisenberg/5a172662cb576872d1ab to your computer and use it in GitHub Desktop.
Reset all iOS simulators with this one weird trick
This file contains 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
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
none of this stuff worked for me
# run this multiple times
pkill -flai xcode
# if any $process_id refuses to die and keeps printing out when doing the previous command, run this
kill -9 $process_id
🥳
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this while looking to delete all simulators (instead of erase). If you want to do that, you can delete them all with
xcrun simctl delete all
.