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: dave-ble@greylogic.com [mailto:dave-ble@greylogic.com] Sent: Thursday, May 02, 2013 1:09 PM To: Joakim Fernstad Cc: Rick Mann; bluetooth-dev@lists.apple.com 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 <jfernstad@stratos.com> 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=stratos.com@lists.apple.com [mailto:bluetooth-dev-bounces+jfernstad=stratos.com@lists.apple.com] On Behalf Of Rick Mann Sent: Thursday, May 02, 2013 12:11 PM To: bluetooth-dev@lists.apple.com 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/jfernstad%40stra tos.com
This email sent to jfernstad@stratos.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/dave-ble%40greyl ogic.com
This email sent to dave-ble@greylogic.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Joakim Fernstad