How to reset Xcode Simulators

We often debug iOS/macOS application in simulators when developing iOS/macOS application. Sometimes we need a clean simulator environment, so we have to reset simulators.

Here’s the steps:

Step One

Shutdown all simulators manually, or execute command:

1
xcrun simctl shutdown all

Step Two

Execute command:

1
xcrun simctl erase all

That’s it.