Questions tagged [iobluetooth]
82 questions
210
votes
29 answers
Xcode build failure "Undefined symbols for architecture x86_64"
An Xcode beginner's question:
It is my first experience with Xcode 4.6.3.
I am trying to write a very simple console program, that searches for paired BT devices and prints them to an NSLog.
It builds with the following error:
Undefined symbols for…

RisingSun
- 2,407
- 2
- 16
- 11
43
votes
7 answers
How to get the status of bluetooth (ON/OFF) in iphone programmatically
I trying to get the Status of iPhone/iPod Bluetooth that whether it is ON or OFF programmatically.
Is it possible using some Apple API or third party API.

Nilikh
- 431
- 1
- 4
- 3
36
votes
1 answer
Unable to Open SCOAudio connection with phone
I am trying to use IOBluetooth framework on OS X 10.8.2 to connect with the bluetooth enabled phones emulating computer as a hands free device. I can successfully make a connection with the phone and phone can recognise the connection as a HandsFree…

Muhammad Usama
- 2,797
- 1
- 17
- 14
15
votes
1 answer
Purpose of CBCentralManagerScanOptionSolicitedServiceUUIDsKey
The CBCentralManagerScanOptionSolicitedServiceUUIDsKey option is available when scanning for devices in CoreBluetooth, the documentation states
Specifying this scan option causes the central manager to also scan
for peripherals soliciting any of…

Nick
- 3,958
- 4
- 32
- 47
12
votes
1 answer
Nearby Bluetooth devices using Swift 3.0
I'm looking for a way to programmatically list any nearby Bluetooth devices (discoverable) that my device finds. I have not been able to find any information or tutorials regarding performing this call in Swift 3.0. This Q-A post discusses finding…

Dylan
- 823
- 2
- 9
- 33
12
votes
1 answer
Mac OS X bluetooth programming sample?
I am trying to develop an application using bluetooth in my Mac mini. However, after searching all over net, all that I could find was the "Bluetooth Device Access Guide" from Apple, and not a single sample program!
Can anyone suggest of any sample…

tuttu47
- 521
- 1
- 4
- 19
10
votes
2 answers
Can I make my Mac as a Bluetooth Peripheral?
I'm working on an idea which requires my Mac to send some data to my iOS device. I know CoreBluetooth framework is not there for Mac OS and only for iOS, so is there any way that I can get my Mac to pose a peripheral ?
I've done some Googling around…

Mohit Athwani
- 883
- 9
- 17
10
votes
1 answer
Is it possible to "unpair" a Bluetooth device in Cocoa/ObjC?
I've paired an IOBluetoothDevice in my Mac/Cocoa app and would like to "unpair" it programmatically. That is, I would like to remove the device from the left pane of the Bluetooth section of System Preferences.
I've seen [IOBluetoothDevice…

Ford
- 1,485
- 3
- 14
- 20
8
votes
1 answer
List devices that are in range of Bluetooth device in Swift
I have the following code in a Xcode 6 playground:
import Cocoa
import IOBluetooth
class BlueDelegate : IOBluetoothDeviceInquiryDelegate {
func deviceInquiryComplete(sender: IOBluetoothDeviceInquiry, error: IOReturn, aborted: Bool) {
…

Xenph Yan
- 83,019
- 16
- 48
- 55
8
votes
1 answer
l2cap server/client using IOBluetooth (osx bluetooth stack)
I'm having trouble understanding the API to set up a l2cap (or RFCOMM) client/server running on OSX like I can with BlueZ on Linux.
On Linux, I simply open a socket, bind, listen & then accept for the server, & socket, bind, connect for the client…

Vitali
- 3,411
- 2
- 24
- 25
8
votes
1 answer
Bluetooth Communication between OSX and iOS
I'm working on an application that does does lots of iOS <--> OSX communication. For the most part I have this solved.
I'm using CocoaPort to do the communication. Over Wifi this worked nicely and was plenty fast.
I'm using Bonjour to find my…

Tim
- 4,560
- 2
- 40
- 64
7
votes
1 answer
How to get a list of BLE devices through IOBluetooth framework (macOS)
I have a problem listing all of the devices through IOBluetooth framework. Is there a way to get not only classic, but also BLE devices?
My code is
let ioBluetoothManager = IOBluetoothDeviceInquiry(delegate: self)
var ioDevices =…

Max Kraev
- 740
- 12
- 31
7
votes
1 answer
How Can I Establish A L2Capp Interrupt Channel Connection?
Im trying to open a L2Cap HID Channel And Interrupt channel so I can send HID commands to a bluetooth device.
I've done all my service advertising and device paring and established a baseband connection.
The Hid Control channel opens fine.
When I…

dubbeat
- 7,706
- 18
- 70
- 122
7
votes
3 answers
IOException on accept thread
One part of my application connects to a device through Bluetooth and normally works fine but occasionally it won't connect and I get the following error
03-11 10:29:20.328: E/BluetoothComService(8059): accept() failed
03-11 10:29:20.328:…

codeMagic
- 44,549
- 13
- 77
- 93
6
votes
2 answers
iOS Input Mic Output Bluetooth Device
I am trying to get input from Mic and output it to my bluetooth device using audioRouteOverride. But No luck . iphone Mic output is still going to iphone builtin speakers. I expected kAudioSessionOutputRoute_BluetoothA2DP is the key here.
But it is…

Avi The Undertaker
- 121
- 1
- 8