RE: CoreBluetooth on OS X
RE: CoreBluetooth on OS X
- Subject: RE: CoreBluetooth on OS X
- From: Joakim Fernstad <email@hidden>
- Date: Thu, 02 May 2013 20:25:20 +0000
- Thread-topic: CoreBluetooth on OS X
CoreBluetooth seem to only be includable through IOBluetooth. I agree with you guys that it's weird they decided to go this route.
Trying to link directly with CoreBluetooth gives this linker error.
ld: cannot link directly with /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/CoreBluetooth. Link against the umbrella framework 'IOBluetooth.framework' instead. for architecture x86_64
Joakim
-----Original Message-----
From: email@hidden [mailto:email@hidden]
Sent: Thursday, May 02, 2013 1:09 PM
To: Joakim Fernstad
Cc: Rick Mann; email@hidden Bluetooth
Subject: Re: CoreBluetooth on OS X
I have had to deal with the same issues as Rick. I have the following everywhere I need to import the CoreBluetooth header files.
#ifdef __OSX_PLATFORM__
# import <IOBluetooth/IOBluetooth.h>
#else
# import <CoreBluetooth/CoreBluetooth.h> #endif
I don't understand why I can't just import CoreBluetooth.h on both platforms since all I want is BLE.
-- dave
On May 2, 2013, at 1:00 PM, Joakim Fernstad <email@hidden> wrote:
> CoreBluetooth is only for BLE and it exist for OS X as well as for iOS. It's the same interface for both platforms.
>
> IOBluetooth is for 'regular' Bluetooth which is not allowed (unless you do MFI) for iOS and hence only exist for OS X.
>
> Joakim
>
> -----Original Message-----
> From: bluetooth-dev-bounces+jfernstad=email@hidden
> [mailto:bluetooth-dev-bounces+jfernstad=email@hidden]
> On Behalf Of Rick Mann
> Sent: Thursday, May 02, 2013 12:11 PM
> To: email@hidden Bluetooth
> Subject: CoreBluetooth on OS X
>
> Why is it IOBluetooth on OS X and note CoreBluetooth? For the longest time, sharing Quartz 2D code between iOS and OS X was a pain, because you had to include different header files. Now I find it's the same with Core Bluetooth.
>
>
>
> --
> Rick
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> tos.com
>
> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> ogic.com
>
> This email sent to email@hidden
_______________________________________________
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