-
Notifications
You must be signed in to change notification settings - Fork 292
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
PPRiskMagnes has been changed back to a dynamic Framework #920
Comments
👋 Hi @mrtnlst. Thank you for opening this issue. So a few things: in v5.8.0 we did switch to a static framework of Magnes. In v5.16.0, we updated Magnes back to a dynamic framework, unknowingly. This was our mistake for not documenting and something we will be sure to clearly document in the future and test prior to shipping. In retrospect, we believe these changes should have more properly been versioned as breaking changes, since Carthage merchants who include the Magnes binary directly would need to change its embed settings. In the meantime - we are working to get static versions of Magnes and Cardinal binaries from our partners. We will keep you posted on when and how those are available for release. It would be helpful though if you could give more context on how your app pulls in Braintree and your use case for static v dynamic frameworks. Thanks! |
@scannillo Thank you for the quick response. It does break in a weird way in a project where we include Magnes (through PayPalDataCollector) with Swift Package Manager. It does work while debugging, but crashes in the Simulator mentioning, that the dylib can't be found. |
Thanks for confirming that this also breaks your SPM integration. I imagine if you remove and then re-install the Braintree Swift Package, this issues will resolve. Can you confirm?
So switching between dynamic and static frameworks is indeed a breaking change, as you have experienced. It was our mistake in v5.8.0 to include a static version of PPRiskMagnes without making a major version bump. What we'll do is update the release notes of 5.16.0 to clarify that this version reverts back to the expected dynamic framework type for major version V5 of braintree_ios. In the next major version V6, which is currently in beta, we will go forward with static framework binaries. We are still working to get these from our partners and will cut a V6 beta release with the updated static frameworks as soon as possible. |
@mrazam110 - That looks like a different issue. Please open a new issue and fill out the template with steps to replicate. |
@scannillo We found the culprit in our project that lead to the crash. Nevertheless we're looking forward for it being a static framework in v6.0 😄 Thanks again for the fast replies! For anyone that faces a similar issue, here is what was wrong in our project:
Apparently our project was setup universal (as a Mac app) and then changed back to an iOS App. The setting build setting |
👋 The v5.16.0 release notes have been updated to call out the switch back to a dynamic framework. V6 will move to static frameworks. |
Integration Details:
Describe the bug
In Release 5.8.0 you changed the PPRiskMagnes to dynamic framework:
On the most current one (5.19.0 and 6.0.0-beta) it has changed back to be a dynamically linked framework. Has this happened by accident? Is it possible that you change it back in a future release?
To Reproduce
I checked the current version 5.19.0's PPRiskMagnes binary with
file
in Terminal:The text was updated successfully, but these errors were encountered: