Cannot include IOBluetooth.h in Objective-C++ C++11 mode
| Originator: | comexk | ||
| Number: | rdar://15312520 | Date Originated: | 24-Oct-2013 04:25 PM |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
As it says on the tin.
Steps to Reproduce:
% cat iob.mm
#include <IOBluetooth/IOBluetooth.h>
% xcrun --sdk macosx10.9 clang++ -c iob.mm -std=c++11
Expected Results:
Successful compilation.
Actual Results:
In file included from iob.mm:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOBluetooth.framework/Headers/IOBluetooth.h:62:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h:145:4: error:
'CBPeripheralAuthorizationStatus' is unavailable: not available on OS X
+ (CBPeripheralAuthorizationStatus)authorizationStatus NS_AVAILABLE(NA, 7_0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h:26:28: note:
declaration has been explicitly marked unavailable here
typedef NS_ENUM(NSInteger, CBPeripheralAuthorizationStatus) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:251:46: note:
expanded from macro 'NS_ENUM'
#define NS_ENUM(_type, _name) CF_ENUM(_type, _name)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:163:62: note:
expanded from macro 'CF_ENUM'
#define CF_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
^
1 error generated.
Version:
OS X 10.9 (13A598)
Xcode 5.0.1 (5A2053)
Notes:
Configuration:
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!