【问题标题】:CoreBluetooth BLE hardware is unsupported on this platform此平台不支持 CoreBluetooth BLE 硬件
【发布时间】:2014-10-03 08:56:07
【问题描述】:

要连接到 BLE 设备,我正在使用您可以在此处找到的代码:

https://stackoverflow.com/a/25828315/1565181

我在我的 macpro 上运行代码并激活了蓝牙。我可以在设置 - >蓝牙菜单中连接到我的手机,但不幸的是,当我运行代码时,我只能在控制台上得到“CoreBluetooth BLE hardware is unsupported on this platform”输出。我还没有开发者账号,会不会是这个问题?

【问题讨论】:

  • 什么版本的 MacPro ?我猜你的 MacPro 有“经典蓝牙”,但没有蓝牙低功耗。
  • 你是如何在你的 Mac 上运行代码的?它是在 Mac 应用程序中,还是在 iOS 模拟器中运行?
  • @Larme:首先抱歉,我有一个 macbook pro。这是最新款。
  • @Vinny:我在 iOS 模拟器中运行它
  • 如果你在模拟器上运行,你不能使用BLE。您必须在真实设备上使用它。

标签: ios bluetooth-lowenergy core-bluetooth


【解决方案1】:

iOS 模拟器不支持 CoreBluetooth。您需要在支持蓝牙 LE 的 iOS 设备上运行该应用程序。您需要付费开发者帐户才能在 iOS 设备上运行应用程序。

【讨论】:

  • 目前,如果您在通过USB连接到开发者计算机的手机上安装应用程序,则不需要付费帐户。
【解决方案2】:

目前您只需要一个真实的设备。 苹果允许调试任何苹果 id

【讨论】:

    猜你喜欢
    • 2018-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-29
    • 1970-01-01
    • 1970-01-01
    • 2021-01-05
    • 2017-04-30
    相关资源
    最近更新 更多