Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulating bluetooth devices on iOS simulator / Xcode

I am testing some code to connect bluetooth devices on an iPhone app that works with WatchKit. As Apple watch is not out 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 this to the iPhone simulator and WatchKit extension processes? I know how to attach the Watch app to the iPhone simulator but I am unaware of any technique to simulate BLE.

like image 427
mm24 Avatar asked May 01 '26 15:05

mm24


1 Answers

Yes you can.

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

$sudo nvram bluetoothHostControllerSwitchBehavior="never"
like image 116
BriniH Avatar answered May 04 '26 04:05

BriniH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!