• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IOBluetoothHandsFreeDevice has failed if app sand box is enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOBluetoothHandsFreeDevice has failed if app sand box is enabled


  • Subject: IOBluetoothHandsFreeDevice has failed if app sand box is enabled
  • From: 김영태 <email@hidden>
  • Date: Sun, 23 Dec 2012 17:22:12 -0800

Hi,

I'm developing the HFP emulator on MacOS 10.8 platform.

Referencing to this article, I'm able to create IOBluetoothHandsFreeDevice and it is running, fantastic, however, if app sandbox is enabled, IOBluetoothHandsFreeDevice kept being failed even though I did to follow up these scripts…

http://lists.apple.com/archives/bluetooth-dev/2012/Sep/msg00032.html
http://lists.apple.com/archives/bluetooth-dev/2012/Sep/msg00037.html

==
Matt Gillette <email@hidden>

Before creating the IOBluetoothHandsFreeDevice you need to call

IOBluetoothAddSCOAudioDevice((IOBluetoothDeviceRef)device, (CFDictionaryRef)[NSDictionary dictionaryWithObject:@YES forKey:@"Autoconfig hidden"]);

This only needs to be called once per pairing.
==

AFTER enabling SAND BOX option with "com.apple.security.device.bluetooth" is TRUE

    IOBluetoothHandsFree *handsfree;
    handsfree = [[IOBluetoothHandsFreeDevice alloc] initWithDevice:[rfcommChannel getDevice] delegate:self];
--> Whenever that function is invoked, this error always came out..
   
"Failed to create SCO audio device LG-P930 70-05-14-e3-4b-13-HandsFree"

Could someone give me a little tips why it is failed if sandbox is enabled?

Thanks
-- Young Kim

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: deallocation while connecting
  • Next by Date: About CoreBluetooth disconnect behavior
  • Previous by thread: Re: deallocation while connecting
  • Next by thread: About CoreBluetooth disconnect behavior
  • Index(es):
    • Date
    • Thread