Set the location in iPhone Simulator

Cliff picture Cliff · Oct 18, 2008 · Viewed 107.4k times · Source

How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator?

Answer

Robert Altman picture Robert Altman · Nov 17, 2011

As of iOS 5, the simulator has a configurable location.

Under the Debug menu, the last entry is "Location"; this gives you a sub menu with:

  • None
  • Custom Location
  • Apple Stores
  • Apple
  • City Bicycle Ride
  • City Run
  • Freeway Drive

Custom Location lets you enter a Lat/Long value. Bicycle ride, City Run, and Freeway Drive are simulation of a moving location (in Cupertino, of course).

Of course, this does nothing to help with debugging for iOS 4 (or earlier); but it's a definite improvement!