NSBluetoothAlwaysUsageDescription 導(dǎo)致的二進(jìn)制文件無(wú)效

iOS13處世以后,蘋(píng)果隱私授權(quán)提示有點(diǎn)改動(dòng),關(guān)于藍(lán)牙的使用

Dear Developer,

We identified one or more issues with a recent submission for App Store review for your app, "XXXX" 1.0 (7). 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).

Best regards,

The App Store Team


解決方案,文檔中說(shuō)的和明確。

在Info.plist 文件中添加一下配置即可。

<key>NSBluetoothAlwaysUsageDescription</key>

<string>App需要您的同意,訪(fǎng)問(wèn)藍(lán)牙來(lái)進(jìn)行配鎖</string>

<key>NSBluetoothPeripheralUsageDescription</key>

<string>App需要您的同意,訪(fǎng)問(wèn)藍(lán)牙來(lái)進(jìn)行配鎖</string>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容