I just started doing some research into Core Location and it seems that the tutorials that I am following are not working for me. Even when I download the source code and run it, nothing happens. At present I have attempted this tutorial. When I run it, I get a popup asking if I want iPhone to use my current location. I press ok, and then nothing happens. Am I supposed to do anything else?
I am also using VMWare, and currently am unsure if this is the cause (although my internet connection works perfectly on it). I’m using base sdk ios 4.3 – running simulator.
In order for location to work, you need to be running the code on an actual device. The latest public iOS SDKs don’t yet support location changes in the simulator. The simulator will always return
1 Infinite Loop, Cupertino, CA(Apple’s headquarters) as the location.See the Core Location documentation for more information on using location in your apps. (Although I can’t find a citation for the limitation of the simulator at the moment.)