Search code examples
iphonexcode4ios-simulator

iPhone simulator 4.3 with xcode 4 is not showing current location


I have xcode 4 and iphone simulator 4.3. i have downloaded sample project from apple developer website which shows current location. So code is absolutely OK.I have mac mini with wifi on. I have tested that project and once it run. but after that despite of many attempts it does not show location and gives error finding location.

What will be the reason of it.


Solution

  • You can't get location on simulator. So try on a device. CLLocation class is hardware specific.