Last active
June 20, 2024 17:13
-
-
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 |
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
.
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
This also does not work fun, so I make a fix. : )