Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable location service in iPhone simulator?

I'd like to test what happens if my app can't get the location coordinates. Is it possible to disable the location service in the simulator, like on an iPod Touch with WiFI turned off?

I still don't have my iPhone Developer Program certificate, so I can't test it on my device.

Thanks in advance!

like image 302
iYassin Avatar asked Feb 25 '10 09:02

iYassin


1 Answers

You can disable the location services in the simulator;

  1. Run your app through xcode so the simulator opens
  2. Stop the app via xcode (this should leave the simulator open)
  3. Open the Settings app in the simulator window
  4. Privacy > Location Services. Disable Location Services
  5. Run your app again, location services should be disabled

Hope it helps!

like image 170
PaulB Avatar answered Sep 23 '22 05:09

PaulB