Bug 19170 - XamMac CoreBluetooth is missing CBPeripheralManager
Summary: XamMac CoreBluetooth is missing CBPeripheralManager
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.8.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
Depends on:
Reported: 2014-04-18 15:57 UTC by Andrew Fernandes
Modified: 2015-01-16 19:14 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Andrew Fernandes 2014-04-18 15:57:56 UTC
For Mac OS 10.9 and iOS 7, the CoreBluetooth APIs should be virtually identical.

However, Xamarin.Mac 1.8.0 is missing the CBPeripheralManager and CBPeripheralManagerDelegate classes (and perhaps other, I did not check). These classes ARE available (and usable) from Objective-C.

This may be an "automated binding" failure, since IOBluetooth.h is not usable from C++ code. See http://openradar.io/15312520. Note that the openradar bug is not completely correct; the failure occurs if IOBluetooth.h is used from any Objective-C++ code, not just in C++11 mode.
Comment 1 Andrew Fernandes 2014-05-14 16:15:21 UTC
Just to add more detail here, I've got a nice bit of CoreBluetooth code (written in pure Objective-C) that compiles cleanly on OS 10.9 and iOS 7, and exposes each device as a Bluetooth Central and peripheral.
Comment 2 Udham Singh 2014-07-15 07:50:43 UTC
I have checked this issue and observed that classes CBPeripheralManager and CBPeripheralManagerDelegate classes are missing from namespace MonoMac.CoreBluetooth.

Screencast : http://www.screencast.com/t/bVJGqxrXvY

Environment Info:

=== Xamarin Studio ===

Version 5.2 (build 379)
Installation UUID: 3dbf10c4-ed30-4e55-8a8b-1704777c7b5f
    Mono 3.6.0 ((no/5ff701f)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 306000037

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: b983743
Build date: 2014-07-13 20:15:09-0400

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 502000379
Git revision: e797f287ff084be87a252fec5fcc1c79c53bd422
Build date: 2014-07-15 03:41:44-04
Xamarin addins: e40cad220f133f3ced5a76d33649afee4d1358c1

=== Operating System ===

Mac OS X 10.8.5
Darwin localhost 12.5.0 Darwin Kernel Version 12.5.0
    Sun Sep 29 13:33:47 PDT 2013
    root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
Comment 3 Timothy Risi 2015-01-16 19:14:09 UTC
These bindings have been added for OS X.