位置服务在iOS 6中不起作用 [英] Location Services not working in iOS 6

查看:118
本文介绍了位置服务在iOS 6中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

iOS 6和位置服务无法正常工作

我们的应用程序的位置服务已在iOS 6中停止运行。它们在iOS 5中运行良好。当我调用CLLocationManager的startUpdatingLocation方法时,它从不提示用户访问,我们的应用程序未显示在设置位置服务页面中。

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?

编辑:
我创建了一个新目标,它在那里工作。

I created a new target and it works in there.

推荐答案

看起来问题是我们没有在.plist文件中声明CFBundleDisplayName。我们有CFBundleName但没有CFBundleDisplayName。

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

这篇关于位置服务在iOS 6中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆