Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 492
SteMa Avatar asked May 04 '10 08:05

SteMa


People also ask

How do you refresh iPhone simulator?

ctrl+cmd+z. Pause . 5 seconds for menu to appear. Click the reload button image.

How do you restart an app on iPhone simulator?

For closing (not quit) the running application in Simulator the keyboard shortcut is "shift+command+h".

How do I wipe data from simulator?

To remove all data and settings from an iOS simulator, just click Device then select Erase All Content and Settings from the drop-down menu: A confirm dialog will show up. Click on the Erase button: The process will take a while to finish.


1 Answers

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"

like image 195
neoneye Avatar answered Sep 19 '22 18:09

neoneye