iPad Air - CoreBluetooth [错误]取消选择器,因为我们无法与蓝牙通信 [英] iPad Air - CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth

查看:326
本文介绍了iPad Air - CoreBluetooth [错误]取消选择器,因为我们无法与蓝牙通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ExternalAccessory框架。
我在新的iPad Air上尝试使用我的应用时遇到了问题。

I'm working with the "ExternalAccessory framework". I encountered a problem trying my app on a new iPad Air.

当我尝试显示蓝牙选择器时出现此错误:

When i try to show the bluetooth picker this error appear:

CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth

蓝牙开启
Picker返回此错误:

The bluetooth is ON. Picker return this error:

Error Domain=EABluetoothAccessoryPickerErrorDomain Code=3 "The operation couldn’t be 
completed.

我的应用程序适用于每台Apple设备,新iPad Air除外。

My app work on every Apple Device, except the new iPad Air.

我可以连接并与我的设备通信。只有在我拨打蓝牙选择器时才会出现问题。

I can connect and communicate with my device. The problem appear only if i call the bluetooth picker.

此问题也出现在EADemo的修改版本中。

the problem appears also with a modified version of EADemo.

我添加了此功能。

- (void)searchDevice {
    [[EAAccessoryManager sharedAccessoryManager] showBluetoothAccessoryPickerWithNameFilter:nil completion:nil];
}

当我打电话给它时,BANG!同样的错误。仅限 iPad Air

When i call it, BANG! The same error. Only in iPad Air

推荐答案

您的应用需要包含64位切片(将 arm64 添加到 ARCHS 构建设置),否则在iPhone 5S,iPad Air等64位设备上会出现此问题......这是iOS 7.0 - 7.0.3中的一个错误。它应该在下一个版本中修复。

Your app needs to include a 64-bit slice (add arm64 to the ARCHS build setting), otherwise this problem will occur on 64-bit devices like iPhone 5S, iPad Air... This is a bug in iOS 7.0 - 7.0.3. It is supposed to be fixed in the next release.

这篇关于iPad Air - CoreBluetooth [错误]取消选择器,因为我们无法与蓝牙通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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