Set the location in iPhone Simulator

core-location, ios-simulator, iphone

Solution

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!

Problem

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

Original source

Related problems