【发布时间】:2025-11-15 14:20:01
【问题描述】:
我使用 requestWhenInUseAuthorization/NSLocationWhenInUseUsageDescription 解决方案为 iOS 8 定位服务更新了我的应用程序。 (Location Services not working in iOS 8)
在 iOS 8 上:如果我从 Xcode 运行应用程序,它运行良好(我得到了弹出窗口);但如果我运行从苹果商店下载的版本,它就不起作用(没有弹出窗口;没有检索到位置)。
有人知道为什么吗?
【问题讨论】:
-
您是否在 info.plist 中添加了 NSLocationWhenInUseUsageDescription 键?
标签: ios iphone ios8 core-location cllocationmanager