我有一个在 iOS 手机上运行的 Cordova 应用程序。我正在尝试将此应用程序的更新发送到 App Store,但被拒绝了。首先,它被拒绝了,因为 info.plist
包含一行带有键 NSBluetoothPeripheralUsageDescription
并且我的应用程序从未使用过此功能。为了解决这个问题,我从 info.plist
中删除了这一行,并从 xCode 中的 Linked Frameworks and Libraries 中删除了相应的框架(框架 CoreBluetooth.framework
和行 NSBluetoothPeripheralUsageDescription
由 Cordova Diagnostic Plugin 添加),如下图所示:
但是现在我收到了一封来自 iTunes Connect 的电子邮件,内容如下:
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data.
但是我从 xCode 项目中删除了 CoreBluetooth.framework
...
我的问题是:我需要从另一个地方移除这个框架吗?是否有一些其他框架能够使用蓝牙导致此问题?
感谢您的帮助。
最佳答案
打开 Info Plist 文件并按 + 号在项目的 info.plist 中添加新 key 并添加此 NSBluetoothPeripheralUsageDescription 并写入值“Explain the reasons for bluetooth”
关于ios - 应用程序拒绝 : Missing Info. plist 键 "NSBluetoothPeripheralUsageDescription"但框架不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44003952/