Skip to content

Instantly share code, notes, and snippets.

@ZevEisenberg
Last active November 30, 2022 09:27
Show Gist options
  • Save ZevEisenberg/5a172662cb576872d1ab to your computer and use it in GitHub Desktop.
Save ZevEisenberg/5a172662cb576872d1ab 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'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@soffes
Copy link

soffes commented Nov 12, 2019

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.

@zfogg
Copy link

zfogg commented Oct 19, 2020

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