Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

xcode 4.1 and location services on the iphone simulator?

I bought the Big Nerd Ranch guide to iOS programming, and in Chapter 4 you build an app that used the GPS location of the phone. When I run the app I coded, the book said a prompt would come up asking if it could use location services. This didnt happen on my app, so I figured I had made a typo. I downloaded the sample code from the website, and the entire interface worked but it didn't even try to get my location. I've read that this is a problem in XCode 4.1, and most people fix this by changing a setting on their device. However, this setting is not available on the iPhone simulator. Has anyone gotten location services to work on the iPhone simulator in XCode 4.1? Any help is GREATLY appreciated 🙂

MacBook Pro

Posted on Aug 3, 2011 9:41 PM

Reply
Question marked as Best reply

Posted on Aug 3, 2011 9:57 PM

The simulator doesn't support GPS.


You have to run on an actual device.

5 replies

xcode 4.1 and location services on the iphone simulator?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.