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

Switch to packaging releases as XCFrameworks #6964

Merged
merged 6 commits into from Dec 2, 2020

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Dec 1, 2020

Turns out that -allow-internal-distribution exists and lets us package a Swift framework as an xcframework without using library evolution mode, which eliminates the need to do a bunch of awkward things to work around that. Switching to XCFrameworks lets us properly support all platforms with the prebuilt frameworks and simplifies the setup process (just drag the xcframework into your project and you're done, rather than having to pick the correct platform and add the strip frameworks step).

Most of the changes here are just updating the examples to use the new packaging. The Swift playground example isn't tested and so turned out to have bitrotted a bit. I deleted the RubyMotion example entirely because it's been years since anyone actually gave any indication that they were using RubyMotion and we never really got it working well to begin with.

https://ci.realm.io/blue/organizations/jenkins/cocoa-pipeline/detail/cocoa-pipeline/1293/pipeline is an almost-successful run of cocoa-pipeline using this; the catalyst tests fail due to CocoaPods/CocoaPods#10224.

@tgoyne tgoyne self-assigned this Dec 1, 2020
Copy link
Contributor

@leemaguire leemaguire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup!

@tgoyne tgoyne force-pushed the tg/xcframework-release-package branch from f69ee0a to dff2b58 Compare December 2, 2020 17:37
@tgoyne tgoyne merged commit 32b2060 into master Dec 2, 2020
@tgoyne tgoyne deleted the tg/xcframework-release-package branch December 2, 2020 19:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants