Skip to content
New issue

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

[SR-13214] Package Manager is not compatible with Objective-C based XCFrameworks #4525

Open
swift-ci opened this issue Jul 14, 2020 · 0 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-13214
Radar None
Original Reporter EpilepticKoala (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 12 beta 2 (12A6163b)

swift-tools: 5.3

Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

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.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants