iOS 13 NSBluetoothAlwaysUsageDescription

项目中用到了蓝牙,今天提交时报被拒了,问题如下:

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.

原因是 iOS 13 之后新增 Info.plist 的 key NSBluetoothAlwaysUsageDescription

//name
Privacy - Bluetooth Always Usage Description

//type
String

iOS 13 之前:

//Name
Privacy - Bluetooth Peripheral Usage Description
//Type
String
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容