3

I have read Does the iPhone simulator in Xcode support Bluetooth Low Energy?

I need to establish a connection with BLE from the mac retina to the iPad Air . Did something has changed and i can now make the connection from the mac ?

How if not, can someone make an app that connect the mac to the iDevice if you can't establish the connection from mac to iDevice in simulator ?

Is there a way to do that ?


Community
  • 1
  • 1
Curnelious
  • 1
  • 10
  • 65
  • 133

1 Answers1

3

The simulator is not supported any more since iOS7 and XCode 5. You need a real device to test core bluetooth iOS applications. There were too much issues with the simulator so they finally dropped its support.

If you have two iOS devices, then use those for testing. If you have only one, then you can create a Mac app that can simulate the other role. The most efficient way to test highly depends on your application.

allprog
  • 15,913
  • 8
  • 54
  • 94
  • Exactly.creating a Mac app that's what I need,but how can you do that without simulator? – Curnelious Feb 26 '14 at 20:50
  • Simply add the IOBluetooth framework to your Mac App and use the same Core Bluetooth API as you would on iOS. The Heard Rate monitor is a great example from Apple https://developer.apple.com/library/mac/samplecode/HeartRateMonitor/Introduction/Intro.html – allprog Feb 26 '14 at 22:25
  • again, if the mac can't produce bluetooth signals in simulator, it seems that running another program on that same mac, that is mac targeted, will have the same issue. – Curnelious Mar 01 '14 at 19:34