Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode iOS simulator's Settings > Bluetooth just spins and doesn't turn on

I'm trying Apples BTLE Core Bluetooth test app. But when I run on the iOS Simulator, it doesn't work because Simulator's Settings > Bluetooth was off.

But when I click Settings > Bluetooth to turn it on, it opens the right-hand Bluetooth pane and just shows the busy rotator, and never turns on.

Same problem simulating iPhone or iPad.

POSSIBLE SOLUTION ALREADY: I just found this Apple Tech note, http://developer.apple.com/library/ios/#technotes/tn2295/_index.html

If solution, then I will add the answer to this question, so that others may benefit.

like image 742
Doug Null Avatar asked Apr 25 '13 17:04

Doug Null


2 Answers

This is no longer supported, unfortunately. (As of Xcode 5.0, iOS7) The tech note has been taken down and this third-party article describes some of the changes, including loss of BTLE support in the simulator: http://www.doubleencore.com/2013/09/whats-new-in-bluetooth-le-ios-7/

like image 189
AndrewCr Avatar answered Oct 13 '22 02:10

AndrewCr


This tech note from Apple describes the complete procedure for getting ios simulator to do Bluetooth.

http://developer.apple.com/library/ios/#technotes/tn2295/_index.html

I bought the Bluetooth LE USB dongle at Best Buy. Be sure to ask for one with Bluetooth 4.0 because they still sell 2.0 (cheap).

like image 41
Doug Null Avatar answered Oct 13 '22 00:10

Doug Null