Does the iPhone simulator in Xcode support Bluetooth Low Energy?

前端 未结 6 1548
抹茶落季
抹茶落季 2020-11-27 04:12

I\'m trying some iOS test applications on the new Mac mini, that supports Bluetooth Low Energy. The CoreBluetooth framework is used in those. However, I\'m not able to get B

6条回答
  •  有刺的猬
    2020-11-27 04:54

    I have been using the simulator to test BLE apps - but you need to be on OSX 10.7. As Wilhelmsen mentioned, you also need a BLE USB dongle. In addition, you need to set an NVRAM setting:

    $sudo nvram bluetoothHostControllerSwitchBehavior="never"
    

    See this Technical Note from Apple for more details on using the simulator to test BLE apps: http://developer.apple.com/library/ios/#technotes/tn2295/_index.html

提交回复
热议问题