应用程序的Info.plist文件应包含一个NSBluetoothAlwaysUsageDescription密钥,而该密钥位于plist文件中 [英] The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key while the key is in the plist file

查看:538
本文介绍了应用程序的Info.plist文件应包含一个NSBluetoothAlwaysUsageDescription密钥,而该密钥位于plist文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想声明我已经查看过 Stack Overflow此处,并添加iCoder&迪帕克(Deepak)没有为我解决问题.

First of all, I would like to state that I already looked at Stack Overflow post here and adding either the one mentioned by either iCoder & Deepak didn't solve the problem for me.

我正在使用React-Native开发我的应用程序,包括 React-Native -Permissions 包,我找到了.他们的文档指出,我应该添加其软件包启用的所有权限,例如位置,相机和此处提到的所有其他位置.完成此操作后,我可以将我的应用程序上载到商店并提交以供审核.

I'm using React-Native to develop my apps including this React-Native-Permissions package I found. Their documentation states that I should add all the permission their package enables e.g. Location, Camera and all the others mentioned there. After I did this I was able to upload my application to the store and submit it for review.

今天我到办公室,看到苹果提供了一些反馈.因此,在完成反馈后,我想再次重新上传到商店(如我应该做的那样增加内部版本号).

Today I got to the office and I saw there was some feedback from Apple available. So after I completed the feedback I wanted to re-upload to the store again (increasing the build number as I'm supposed to do).

现在,当我像这样在info.plist中显示消息时,我会不断收到上述标题中的消息

And now I keep getting the message in the title mentioned above while I have it present in my info.plist like such

<key>NSBluetoothAlwaysUsageDescription</key>
<string>Our app does not request this permission or utilize this functionality but it is included in our info.plist since our app utilizes the react-native-permissions library, which references this permission in its code.</string>

我希望在下面阐明一些内容,以便找到我所面临的问题的答案.标题中给出的错误是在上传到商店后直接发生的(因此,我猜测实际的错误是由系统自动检查的).

I hope to clarify things below in order to find an answer to the problem I'm facing. The error given in the title occurs directly after uploading to the store (So I'm guessing the actual error is picked up the automatic checks done by the system).

下面的答案不会帮助我解决问题,因为更具描述性的字符串不会由自动系统检查来检查.而且我已经成功将此字符串用于info.plist中的其他元素.在此之后,我发现了证据,表明人们已使用此策略成功将其应用程序提交到应用程序商店.如Gradner在此链接之后的评论所显示的那样响应本机权限"问题266

The answer below won't help me to fix the problem since the more descriptive string wont be checked by the automatic system check. And I've successfully used this string for other elements in the info.plist. Next to this I found evidence that people successfully submit their app to the app store using this tactic. As shown by the comment of Gradner following this link React Native Permission issue 266

推荐答案

有人发布了对我有帮助的答案,但后来将其删除了!解释一下答案:

Someone posted an answer that helped me, but then deleted it! To paraphrase the answer:

将隐私密钥添加到plist而不知道是什么导致了Apple的错误不是解决此问题的最佳方法.

Adding the privacy keys to the plist without knowing what is triggering the error from Apple is not the best way to solve this.

以我为例,当我执行grep搜索时,发现在project.pbxproj中有对CoreBluetooth.framework的引用.我删除了参考,构建和TestFlight上传成功!

In my case, when I did a grep search I found that there is some reference to CoreBluetooth.framework inside my project.pbxproj. I removed the reference and the build and TestFlight upload succeeded!

要搜索,请使用以下命令:

To search use the following command:

grep -r -a CoreBluetooth.framework ProjectFolder

这篇关于应用程序的Info.plist文件应包含一个NSBluetoothAlwaysUsageDescription密钥,而该密钥位于plist文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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