iphoneios-simulator

How to reset iPhone simulator


My app uses the location service. To test what is happening when the user presses 'Don't allow' when the simulator asks for the permission to access the location service (when the app is started for the first time) I need to reset the simulator. This because the question was answered at the beginning of the development process with allow. So no more questions are asked.

Resetting the Simulator with "Resetting Content and Settings.." don't bring back the question at the start. What I am doing wrong?


Solution

  • For iOS 14 and newer:

    Device > Erase All Contents and Settings...

    For iOS 11 and newer:

    Hardware > Erase All Contents and Settings...

    For previous versions:

    Simulator > Reset Content and Settings...

    (In earlier versions of the simulator the top menu entry label was "iOS Simulator"