【问题标题】:centralManagerDidUpdateState returns power off iOS 11-Beta 4centralManagerDidUpdateState 返回电源关闭 iOS 11-Beta 4
【发布时间】:2018-01-16 22:42:48
【问题描述】:

我正在与CoreBluetooth 合作,我正在使用CBCentralManager 及其代表。但问题是,当我在iOS 11-Beta 4 中运行我的代码时,我在蓝牙开启时在委托- (void)centralManagerDidUpdateState:(CBCentralManager *)central 中处于关机状态。

当我关闭蓝牙然后重新打开时,它会重新打开电源。它在 iOS 10 和 9 中也可以正常工作。外围设备也可以正常工作,并且可以使用 iOS 11-Beta 4 中的 LightBlue 应用程序发现它。我不确定为什么会这样。

【问题讨论】:

    标签: ios objective-c bluetooth cbcentralmanager


    【解决方案1】:

    那里看起来像错误,请在此处查看错误报告:

    https://bugreport.apple.com/web/?problemID=33728133

    还声明:

    一般来说,iOS 11 对不支持 即使描述了问题,也要正确引用 CB 对象 这里变得不那么严重了。所以,最好的办法是管理对象生命周期 正确。

    另外,建议更新并检查 Beta 5。

    在此处查看完整的主题以获取更多信息:

    iOS 11 - CoreBluetooth Broken If Using State Presevation and Peripheral Not Cancelled Properly

    【讨论】:

    • 非常感谢。是的,问题似乎是由于 iOS 错误。它现在已在 iOS 11 - Beta 5 中修复
    • 太棒了...HTH@HassanShahbazi
    猜你喜欢
    • 1970-01-01
    • 2018-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-28
    • 2019-11-30
    • 1970-01-01
    相关资源
    最近更新 更多