We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachment: Download
Xcode 12 beta 2 (12A6163b)
swift-tools: 5.3
md5: 97ded42806261cbcf482e6055ecf4ce3
Issue Description:
Swift 5.3 introduces support for binary targets but it seems like that does not include support for Objective-C based XCFrameworks.
I created a sample project (see attachments) that contains a swift package with 1 library that contains 4 targets and modules of the same name:
A Swift source target
A Swift binary target
An Objective-C source target
An Objective-C binary target
Plus an app to see if they can be used.
The app and the package are within the same workspace, the app has:
a dependency on the libraries that are created by the package
has a source file that imports the 4 modules from above and
within the same source file tries to call code from the module.
Expectation:
**The code builds successfully.
Actual:
While the import statements work, I can not create instances of classes that are declared within the Objective-C binary.
Module 'BinarySampleHelloWorldObjC' has no member named 'EchoObjC'
The folder Package contains a script for regenerating the XCFrameworks after applying changes.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Attachment: Download
Environment
Xcode 12 beta 2 (12A6163b)
swift-tools: 5.3
Additional Detail from JIRA
md5: 97ded42806261cbcf482e6055ecf4ce3
Issue Description:
Swift 5.3 introduces support for binary targets but it seems like that does not include support for Objective-C based XCFrameworks.
I created a sample project (see attachments) that contains a swift package with 1 library that contains 4 targets and modules of the same name:
A Swift source target
A Swift binary target
An Objective-C source target
An Objective-C binary target
Plus an app to see if they can be used.
The app and the package are within the same workspace, the app has:
a dependency on the libraries that are created by the package
has a source file that imports the 4 modules from above and
within the same source file tries to call code from the module.
Expectation:
**The code builds successfully.
Actual:
While the import statements work, I can not create instances of classes that are declared within the Objective-C binary.
The folder Package contains a script for regenerating the XCFrameworks after applying changes.
The text was updated successfully, but these errors were encountered: