Is there a way to set the current user location in iPhone simulator on Xcode 4?, I want the simulator to show a different location other than Cupertino.
Asked
Active
Viewed 6,250 times
5
-
possible duplicate of [Set the location in iPhone Simulator](http://stackoverflow.com/questions/214416/set-the-location-in-iphone-simulator) – jscs Jun 03 '11 at 07:10
-
1"In my delegate callback, I check to see if I'm running in a simulator (#if TARGET_ IPHONE_SIMULATOR) and if so, I supply my own, pre-looked-up, Lat/Long. To my knowledge, there's no other way." http://stackoverflow.com/questions/214416/set-the-location-in-iphone-simulator/214455#214455 – Manni Jun 03 '11 at 05:38
-
See nevan king's answer to http://stackoverflow.com/questions/8541973/simulating-location-changes-for-startmonitoringsignificantlocationchanges – Roger Feb 24 '12 at 22:24
-
http://stackoverflow.com/a/12637537/194544 – beryllium Jan 10 '13 at 21:18
3 Answers
9
Yes, from the simulator's menu choose Debug > Location > Custom Location...
.

Jason Whitehorn
- 13,585
- 9
- 54
- 68
1
You can Simulate Location by selecting Product -> Debug -> Simulate Location and select Location option from Xcode tool.
This is shown in following figure:

Jayprakash Dubey
- 35,723
- 18
- 170
- 177