ios - CoreBluetooth 和外部附件在 iOS10 中不起作用

标签 ios objective-c core-bluetooth ios10 external-accessory

我正在使用使用蓝牙的外部硬件设备时出现此错误,并且我无法获得蓝牙的许可,它在 iOS9 之前一直在工作,但我不知道为什么此更改会影响 iOS10?

错误:

[CoreBluetooth] API MISUSE: has no restore identifier but the delegate implements the centralManager:willRestoreState: method. Restoring will not be supported

2016-09-17 Couldn't find the "com.apple.private.externalaccessory.showallaccessories" entitlement

enter image description here

更新:

我在这里看到了这个错误 https://forums.developer.apple.com/thread/61646

最佳答案

在我的例子中,当我启用“使用蓝牙 LE 配件”时它起作用了。

项目 -> 功能 -> 后台模式 -> 使用蓝牙 LE 配件。

Location of "Uses Bluetooth LE accessories"

关于ios - CoreBluetooth 和外部附件在 iOS10 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39547141/

相关文章:

iphone - 为什么 MKMapView 不会停止显示用户位置?

ios - 如果已为 UIBackgroundModes 注册了位置,iOS 会唤醒已终止的应用程序吗?

ios - iOS 崩溃报告中的 "SIMULATED (this is NOT a crash)"是什么意思?

ios - iMessage 扩展和应用内购买

iphone - 单击 "back"按钮时 UINavigationController 应用程序崩溃

ios - CoreBluetooth - 在 iPhone 上实现的外围设备的通用访问(1800)?

iphone - 依次关闭两个 View Controller :iOS

ios - 如何检测滑动手势方向?

android - 在布局中创建的 ListView 中列出配对的蓝牙设备

ios - CBPeripheral 存储的 UUID 对于重新连接有效多长时间?