TVMLKit.h doesn't compile as Objective-C++

Originator:rolfbjarne
Number:rdar://40824310 Date Originated:
Status:Closed Resolved:Fixed
Product:tvOS SDK Product Version:
Classification: Reproducible:
 
Area:
tvOS SDK

Summary:

TVMLKit.h doesn't compile as Objective-C++

Steps to Reproduce:

Run in terminal:

echo "#include <TVMLKit/TVMLKit.h>" | /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/ -x objective-c++ -mtvos-simulator-version-min=9.0 -c -

Expected Results:

No errors.

Actual Results:

In file included from <stdin>:1:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk//System/Library/Frameworks/TVMLKit.framework/Headers/TVMLKit.h:10:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk//System/Library/Frameworks/TVMLKit.framework/Headers/TVApplicationController.h:11:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk//System/Library/Frameworks/TVMLKit.framework/Headers/TVPlayback.h:145:57: error: 
      type name does not allow function specifier to be specified
@property (nonatomic, readonly, getter=isExplicit) BOOL explicit;
                                                        ^
1 error generated.


Version/Build:

Xcode Version 10.0 beta (10L176w)

Comments

This was fixed in a later Xcode 10 beta (beta 4 probably).

By rolfbjarne at April 11, 2019, 2:09 p.m. (reply...)

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!