美文网首页
iOS13-NSBluetoothAlwaysUsageDesc

iOS13-NSBluetoothAlwaysUsageDesc

作者: 坤哥爱卿 | 来源:发表于2019-09-27 10:39 被阅读0次

    提交被拒显示如下:

    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).
    

    被拒原因:

    iOS13 将废弃 NSBluetoothPeripheralUsageDescription 替换为 NSBluetoothAlwaysUsageDescription


    官方原文
    参考地址:

    https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/accessing_protected_resources?language=objc

    解决方法:

    在info.plist中添加新字段(注意保留原有的NSBluetoothPeripheralUsageDescription,因为需要兼容iOS13以下的版本)


    添加

    相关文章

      网友评论

          本文标题:iOS13-NSBluetoothAlwaysUsageDesc

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