-
Notifications
You must be signed in to change notification settings - Fork 948
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 stability Swift 5.1 #368
Comments
We do the following in our Podfile when importing the library (and others) to enable
|
@jffmrk Thanx for the suggestion, but I have a couple more dependencies and I must do this for each one of them. I will make a PR and see if it's accepted or not. |
Hi @nick3389, However, having said that, I'm myself running into an issue with the generated @ashleymills, any idea on the |
@rockebee Thanx for the info. I didn't check this before. As for the |
Thx @nick3389 for the info - do you have by chance some reference for this Swift limitation where I could read deeper into?
(Sorry for getting OT) |
@ashleymills Actually I wanted to tell you that I still get the warning from XCode: @rockebee It's the second one. You can read more about it here. You can use the following command after your xcframework is created:
Even better you can add it in a script which has all the commands for creating a xcframework, then navigate inside the .xcframework folder and run this command. |
@ashleymills: 👍 Thx! Much better than referring to a Git commit :) @nick3389: For us the warning vanished after switching to latest Git commit as well as now with the new 5.1.0 release. Have you ensured that the dependency is rebuild after you updated the release reference? |
@rockebee The script actually renames the old file and creates a valid copy with the fixed file. I do the same when I have a new version for our XCFramework for our clients and it works just fine. So, your consumers won't have to do anything apart from importing the .xcframework in their project. To be honest, I do not use Carthage but Cocoapods and our clients get our framework through a private distribution channel, so they just copy-paste it into their project. So, I don't know if there is any issue with Carthage, but I guess we can give it a try. Most probably it will work ok! @ashleymills Thanx! |
@ashleymills v5.1.0 is still not available in Cocoapods. The PodSpec is not updated as I saw. |
Hi @ashleymills, Many thx for your efforts! |
Hi @ashleymills, Thx in advance! PS: It might make sense to update the Readme or to create a sticky issue about current state of the project, as there hasn't been much activity recently. Maybe ask for other volunteers to support you in keeping the library up-to-date? |
Hello,
Since Swift 5.1 module stability is introduced for library compatibility for future releases of Swift. A .swiftinterface file is created which is actually the public header file for the library. To enable this, BUILD_LIBRARY_FOR_DISTRIBUTION must be activated in Build Settings. Is this something you have in mind or I can make a PR?
The text was updated successfully, but these errors were encountered: