Simulate Bluetooth devices on iOS simulator / Xcode

I am testing a code for connecting bluetooth devices in an iPhone app that works with WatchKit. Since Apple watch is not over yet, I need to rely on the simulator / Xcode to test it. Is there a way to simulate a bluetooth device on Xcode and link it to the iPhone simulator and WatchKit extension processes? I know how to connect the Watch app to an iPhone simulator, but I don't know any technique to simulate BLE.

+3


source to share


1 answer


Yes, you can.

get yourself a USB BLE dongle. you need to be on OS X 10.7 and you need to set the NVRAM setting as well:



$sudo nvram bluetoothHostControllerSwitchBehavior="never"

      

+2


source







All Articles