2

I use Xcode 5.1.1 and tried to add IOBluetooth framework but couldn't find it. I found the coreBluetooth frame only. How do I find it? is it not supported any more?

user2066392
  • 341
  • 1
  • 2
  • 11

1 Answers1

2

IOBluetooth is used by MAC OS only. If you are developing for iOS you have to use CoreBluetooth.

Avt
  • 16,927
  • 4
  • 52
  • 72
  • first thank you for this info. Secondly, Is it possible to build an app that simply detects any bluetooth device? without setting the central and the peripheral. – user2066392 Jul 13 '14 at 04:48
  • @user2066392 There is the only one way on iOS to scan for devices - using CBCentralManager. If you need a sample - there are tons of them on GitHub. I can suggest to use this one - https://github.com/winkapp/BlocksBluetooth . It is also a block-based wrapper around CoreBluetooth. – Avt Jul 13 '14 at 11:20