iOS 提交代码版本之后,几分钟消失

1.背景

今天上传iOS APP代码之后,几分钟就消失了,收到了来自The App Store Team的邮件
邮件内容如下:

 
Dear Developer,

We identified one or more issues with a recent delivery for your app, "***" 1.1.1 (1). Please correct the following issues, then upload again.

ITMS-90683: 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 NSBluetoothAlwaysUsageDescription 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 are 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).

Though you are not required to fix the following issues, we wanted to make you aware of them:

ITMS-90683: 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 are 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).

Best regards,

The App Store Team

2.原因分析

很明显,邮件中已经告诉我们了,是info.plist文件中少了两个键值对:NSBluetoothAlwaysUsageDescriptionNSLocationAlwaysUsageDescription
这两个是什么呢?
NSBluetoothAlwaysUsageDescription 是获取用户蓝牙权限,之前的 NSBluetoothPeripheralUsageDescription已经废弃了。
NSLocationAlwaysUsageDescription可是这个项目中没有用到额。。好吧,貌似有些三方SDK中有这个相关功能,也要写上去。。。

3.解决方法

写上去这两个字段 NSBluetoothAlwaysUsageDescriptionNSLocationAlwaysUsageDescription,重新上传,解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值