[SR-3480] Error when importing iOS 8+ framework target that contains an iOS 9+ compatible type #46068
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
PrintAsClang
Area → compiler: The PrintAsClang library
Attachment: Download
Environment
Xcode Version 8.2.1 (8C1002) running on Mac OS Sierra Version 10.12.1 (16B2555)
Additional Detail from JIRA
md5: 068dceaa5b173df211a6063019b7ecb9
Issue Description:
I have a framework target set to deploy on iOS 8. The code is attached as a zip archive.
An iOS 9+ type has been extended in said framework and looks like so:
When attempting to import this framework into an iOS 8+ App target, I get a problem.
:0: error: could not build Objective-C module '' expected a type.
The error is referring to the AnchorType, which appears to be wrapped in /* */ in the framework's generated header file.
The text was updated successfully, but these errors were encountered: