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:

xcrun simctl shutdown all

Step Two

Execute command:

xcrun simctl erase all

That’s it.