注册 登录
主题 : 莫名的NSLocationAlwaysUsageDescription问题
级别: 新手上路
UID: 562613
精华: 0
发帖: 18
可可豆: 27 CB
威望: 27 点
在线时间: 166(时)
注册时间: 2016-05-12
最后登录: 2019-05-24
0 楼:  发表于: 2019-05-15 17:38    发自: Web Page

莫名的NSLocationAlwaysUsageDescription问题   

Dear Developer,
We identified one or more issues with a recent delivery for your app, "". Your delivery was successful, but you may wish to correct the following issues in your next delivery:
Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSLocationAlwaysUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).
After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.
Best regards,
The App Store Team


最近打包发APP store时收到邮件说为添加NSLocationAlwaysUsageDescription字段, 但是我代码里面没有使用到后台定位, 以前遇到过如果没有使用后台定位而开启了后台定位会被苹果拒掉, 请问下有大佬们遇到过吗?  现在info.p'list文件里面到底是添加还是不添加这个字段呢?
级别: 侠客

状态: 连续签到 - [86天]
UID: 556841
精华: 0
发帖: 76
可可豆: 524 CB
威望: 352 点
在线时间: 277(时)
注册时间: 2016-04-12
最后登录: 2019-05-24
1 楼:  发表于: 2019-05-17 16:58    发自: Web Page
全局查查是不是某些地方或者第三方用了定位,在没找到原因前即使在plist文件中加了字段,也基本不行  因为你字段后的描述用途你根本没法写  定位使用的描述写不清楚肯定是不行的。

CocoaChina社区转载内容已尽可能注明出处,如未能核实来源或转发内容图片有权利瑕疵的,请及时联系社区进行修改或删除【联系方式QQ : 3442093904 邮箱:support@cocoachina.com】文章内容为作者独立观点,不代表CocoaChina社区立场。版权归原作者所有,如申请授权请联系作者,因文章侵权CocoaChina社区不承担任何法律及连带责任。

描述
快速回复

关注本帖(如果有新回复会站内信通知您)

发帖、回帖都会得到可观的积分奖励。查看论坛积分规则

按"Ctrl+Enter"直接提交
    顶部