美文网首页
iOS 提交代码版本之后,几分钟消失

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

作者: 管乐_VICTOR | 来源:发表于2019-10-10 18:26 被阅读0次
    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,重新上传,解决。

    相关文章

      网友评论

          本文标题:iOS 提交代码版本之后,几分钟消失

          本文链接:https://www.haomeiwen.com/subject/xsbapctx.html