应用被拒绝:缺少Info.plist键"NSBluetoothPeripheralUsageDescription"但框架不存在 [英] App rejected: Missing Info.plist key "NSBluetoothPeripheralUsageDescription" but framework is not present

查看:98
本文介绍了应用被拒绝:缺少Info.plist键"NSBluetoothPeripheralUsageDescription"但框架不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可在iOS手机中运行的Cordova应用程序.我正在尝试将此应用程序的更新发送到App Store,但被拒绝了.首先,它被拒绝了,因为 info.plist 包含一行带有键 NSBluetoothPeripheralUsageDescription 的行,并且此功能从未在我的应用程序中使用.为了解决此问题,我从 info.plist 中删除了这一行,并从xCode中的链接框架和库中删除了相应的框架(框架 CoreBluetooth.framework 和行 NSBluetoothPeripheralUsageDescription

I have a Cordova app that runs in iOS phones. I'm trying to send an update of this app to App Store, but it is being rejected. Firstly it was rejected because the info.plist contained a line with the key NSBluetoothPeripheralUsageDescription and this feature is never used in my app. To solve this problem I removed this line from info.plist and the respective framework from Linked Frameworks and Libraries in xCode (the framework CoreBluetooth.framework and the line NSBluetoothPeripheralUsageDescription was added by Cordova Diagnostic Plugin), as can be seen in the image below:

但是现在我收到来自iTunes Connect的电子邮件,内容如下:

However now I'm receiving a e-mail from iTunes Connect saying this:

缺少Info.plist键-此应用尝试访问对隐私敏感的没有使用说明的数据.应用程序的Info.plist必须包含一个带字符串值的NSBluetoothPeripheralUsageDescription键向用户说明应用程序如何使用这些数据.

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 ...

But I removed the CoreBluetooth.framework from the xCode project...

我的问题是:我需要从另一个地方删除此框架吗?是否有其他能够使用蓝牙的框架导致此问题?

My question is: I need to remove this framework from another place? Are some other framework able to use bluetooth causing this problem?

感谢您的帮助.

推荐答案

打开Info Plist文件,然后按+号在项目的info.plist中添加新密钥,并添加此 NSBluetoothPeripheralUsageDescription 并写入值说明蓝牙的原因"

Open Info Plist file and press on + sign add new key in info.plist of your project and add this NSBluetoothPeripheralUsageDescription and write value "Explain the reasons for bluetooth"

检查下面的屏幕截图

这篇关于应用被拒绝:缺少Info.plist键"NSBluetoothPeripheralUsageDescription"但框架不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆