ios - 为什么 NSBluetoothPeripheralUsageDescription key 的应用程序被 "Missing Purpose String in Info.plist File"拒绝?

标签 ios objective-c xcode bluetooth app-store

所以我有 info.plist :

<key>NSBluetoothPeripheralUsageDescription</key> <string>Bluetooth is required bla bla.</string>

我什至将其本地化为两种支持的语言。

然后添加InfoPlist.strings文件并添加:

"NSBluetoothPeripheralUsageDescription" = "Bluetooth is required bla bla bla";

并将其本地化......

在应用程序目标的功能中,我为后台模式添加了蓝牙。

我只使用标准的 BLE api,没有外部库。

为什么我总是收到一封电子邮件:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "bla". Please correct the following issues, then upload again.

Missing Purpose String in Info.plist File - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSBluetoothPeripheralUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data.

?

最佳答案

您应该添加更多说明,说明为什么您将蓝牙用于 key NSBluetoothPeripheralUsageDescription。

应用程序提供商必须分享您使用特定服务的具体原因。

<key>NSBluetoothPeripheralUsageDescription</key>
<string>Bluetooth is used to communicate with BLE devices.</string>

此外,您需要检查哪个是与您的项目设置关联的 .plist 文件。

您可以使用 Info.plist 文件部分的目标设置检查它。

选择Target -> Build Settings -> Packaging -> Info.plist file

关于ios - 为什么 NSBluetoothPeripheralUsageDescription key 的应用程序被 "Missing Purpose String in Info.plist File"拒绝?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53428339/

相关文章:

ios - imageView 在 xcode9 中不显示图像

iphone - 在 iPad 上选择图像

ios - 互联网连接不良时viewWillAppear和viewDidAppear之间的延迟

ios - 在 loadView 期间或之前获取 UINavigationController 的内部 contentView 的 CGRect 框架

ios - 将 UITouch 事件从 super View 转发到 UIControl 子类

ios - UITextField 文本在编辑前不可见

iphone - iPhone 上的 OpenGLES 新手指南

ios - 在 iOS 应用程序中将少量数据保存到磁盘的最正确方法是什么?

ios - 是否可以在一台 iPad 上运行的两个应用程序之间发送数据

xcode - RELEASE_SAFELY 是什么意思,为什么它在 xcode4 中不起作用?