Location Services not working in iOS 6 [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-19 10:27:38

问题


Possible Duplicate:
iOS 6 and Location Services not working

Our app's location services have stopped functioning in iOS 6. They work fine in iOS 5. When I call CLLocationManager's startUpdatingLocation method it never prompts the user for access and our app doesn't show up in the Settings Location Services page.

Anyone seen this before? I really have no idea where to look. I have tried stripping down our app to just a single view controller and it still doesn't work. Maybe something in the build settings?

Edit: I created a new target and it works in there.


回答1:


It looks like the problem was we did not have CFBundleDisplayName declared in the .plist file. We had CFBundleName but not CFBundleDisplayName.




回答2:


I created the project with XCode 4.4, after install Xcode 4.5 location doesn't work. Declaring in the .plist file key CFBundleDisplayName location now is working.



来源:https://stackoverflow.com/questions/12519733/location-services-not-working-in-ios-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!