Search code examples
iosshellios-simulatorxcrun

Unable to erase contents and settings in current state: Booted


I tried to reset the contents and setting of an iOS-Simulator. I find this command line:

xcrun simctl erase <deviceID>

but i get this error:

Unable to erase contents and settings in current state: Booted

how is it possible to reset the contents and setting when the simulator is booted?

Thank for helping. Cheers


Solution

  • It isn't. You must shutdown the sim device to erase contents and settings.