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

Module compiled with Swift 5.1.2 cannot be imported by Swift 5.2 compiler #4317

Closed
1 task done
afridikhalid opened this issue Mar 25, 2020 · 3 comments
Closed
1 task done

Comments

@afridikhalid
Copy link

afridikhalid commented Mar 25, 2020

What did you do?

ℹ Updated to Xcode 11.4 and run Carthage update

What happened instead?

ℹ importing chart Xcode gives the following error:
Module compiled with Swift 5.1.2 cannot be imported by Swift 5.2 compiler: /User/username/ios/Carthage/Build/iOS/Charts.framework/Modules/Charts.swiftmodule/arm64-apple-ios.swiftmodule

Charts Environment

Charts version/Branch/Commit Number:
**Xcode version: 11.4
**Swift version: 5.2
**Platform(s) running Charts: iOS
**macOS version running Xcode:10.15.4

@liuxuan30
Copy link
Member

damn. I will see if we can release a new build. Such things still waiting to be done after the full ABI support is enabled.

@gk-brown
Copy link

gk-brown commented Mar 30, 2020

Have you considered converting to an XCFramework? I tried this myself this past weekend and was able to build the project successfully, but I ran into some compiler issues when trying to use the resulting .xcframework in one of my apps. Would be happy to try to work through the issues if anyone is interested.

@gk-brown
Copy link

gk-brown commented Mar 30, 2020

I was able to resolve the compilation issues. They were related to method visibility (internal vs. open/public). Would be happy to submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants