需要 NSBluetoothAlwaysUsageDescription,但不使用蓝牙 [英] NSBluetoothAlwaysUsageDescription required, but bluetooth is not used

查看:29
本文介绍了需要 NSBluetoothAlwaysUsageDescription,但不使用蓝牙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我使用新 Xcode 11 GM Seed 2 部署后的 ios 应用程序中,苹果返回错误:ITMS-90683:Info.plist 中缺少用途字符串,带有 NSBluetoothAlwaysUsageDescription.

In my ios app with new Xcode 11 GM Seed 2 after deploy, apple returned error: ITMS-90683: Missing Purpose String in Info.plist with NSBluetoothAlwaysUsageDescription.

https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription?language=objc 已读.

问题是我没有在我的应用中使用蓝牙.或者也许我不知道.我怎样才能找出为什么需要这个许可目的?

The problem is that I don't use bluetooth in my app. Or maybe I don't know about it. How can I find out why this permission purpose is needed?

我没有使用 CoreBluetooth.framework

推荐答案

我今天遇到了完全相同的问题.当我进行 grep 搜索时,我发现我的 project.pbxproj 中有一些对 CoreBluetooth.framework 的引用

I had this exact same issue today. When I did a grep search I found that there is some reference to CoreBluetooth.framework inside my project.pbxproj

我删除了引用并且构建应用程序很顺利.上传到 Apple,它通过了,所以这对我有用.

I removed the reference and building the app went fine. Uploaded to Apple and it got through so this worked for me.

使用以下命令进行搜索

grep -r -a CoreBluetooth.framework ProjectFolder

这篇关于需要 NSBluetoothAlwaysUsageDescription,但不使用蓝牙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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