NSBluetoothAlwaysUsageDescription 提交被拒
阿新 • • 發佈:2021-02-04
被拒
提交以後構建顯示正在處理中,等幾分鐘會自動消失,構建不成功
Apple傳送郵件提示:
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
解決方法
在info.plist中新增新欄位
重新上傳即可