我正在使用“ExternalAccessory 框架”。我在新的 iPad Air 上尝试我的应用程序时遇到了问题。
当我尝试显示蓝牙选择器时,会出现此错误:
CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth
蓝牙开启。选择器返回此错误:
Error Domain=EABluetoothAccessoryPickerErrorDomain Code=3 "The operation couldn’t be
completed.
我的应用程序可以在所有 Apple 设备上运行,除了新的 iPad Air。
编辑
我可以连接我的设备并与之通信。只有当我调用蓝牙选择器时才会出现问题。
编辑 2
EADemo 的修改版本也会出现此问题。
我已经添加了这个功能。
- (void)searchDevice {
[[EAAccessoryManager sharedAccessoryManager] showBluetoothAccessoryPickerWithNameFilter:nil completion:nil];
}
当我打电话时,砰!同样的错误。仅在iPad Air中