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 cannot be imported by the Swift 5.1.3 compiler #3

Open
zackd opened this issue Jan 13, 2020 · 5 comments
Assignees
Labels

Comments

@zackd
Copy link

zackd commented Jan 13, 2020

We are no longer able to build our app due to compatibility issues with InContextSDK:

Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.3 compiler: 
<project_path>/InContextSDK.framework/Modules/InContextSDK.swiftmodule/arm.swiftmodule

Looks like setting BUILD_LIBRARY_FOR_DISTRIBUTION = YES; should fix this?

need to set the Build Libraries for Distribution option to Yes in your framework's build settings, otherwise the swift compiler doesn't generate the neccessary .swiftinterface files which are the key to future compilers being able to load your old library.

https://stackoverflow.com/a/58656323/126600

@JohannesMerz
Copy link
Contributor

@zackd thanks for reaching out! We will look into it and get back to you :)

@JohannesMerz JohannesMerz self-assigned this Jan 15, 2020
@JohannesMerz
Copy link
Contributor

@zackd we just updated the 5.1 package to address this issue. I hope everything works well for you with the new version.

https://github.com/eye-square/ios-sdk/releases/tag/6.71.0

@zackd
Copy link
Author

zackd commented Jan 31, 2020

@JohannesMerz .. both the archives (zip, tar) under 6.71.0 are empty!!

@JohannesMerz
Copy link
Contributor

@zackd i am very sorry! Something seems to be wrong in our build setup. We will come back to you as soon as this is fixed.

@cviejo
Copy link
Collaborator

cviejo commented Feb 5, 2020

@zackd i just built and updated the sdks using swift 5.1.3 and module stability enabled

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

3 participants