-
-
Notifications
You must be signed in to change notification settings - Fork 223
fix: Sentry Cocoa framework version #4411
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
Conversation
Minimal test app with instructions: https://github.com/jpnurmi/SentryMauiApp |
With
https://github.com/jpnurmi/SentryMauiApp/actions/runs/16780386537/job/47521803035 |
Co-authored-by: Stefan Pölz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since all the tests pass, I'm assuming this is good to go.
Thanks @jpnurmi !
Thanks! Yes, this is ready to go, and safe to merge as it only adds a version suffix to the |
When a consuming app upgrades or downgrades Sentry .NET, it might be left with an incorrect, stale version of the Sentry Cocoa framework in the intermediate output directory.
For example, an app built with Sentry .NET 5.5.1 has Sentry Cocoa 8.39 extracted into the intermediate output directory:
When upgraded to Sentry .NET 5.6.0 without cleaning, the intermediate output directory still contains Sentry Cocoa 8.39 instead of 8.46. Similar problems occur when upgrading from Sentry .NET 5.7.0 to 5.8.0 because
Sentry.Bindings.Cocoa
does not match the stale version of Sentry Cocoa.This PR tries to fix the problem by changing
Sentry.Bindings.Cocoa
to reference a versioned framework (Sentry-<version>.xcframework
) instead ofSentry-Dynamic.xcframework
.NOTE: The Xamarin tooling automatically takes care of archiving and extracting
Sentry.Bindings.Cocoa.resources.zip
. It is hard to control the name of the ZIP archive ($(AssemblyName).resources
), but we can control the name ofSentry-xxx.xcframework
inside.P.S. Sentry Cocoa bundle version can be checked in
Sentry-Dynamic.xcframework/ios-arm64_x64_64-simulator/Sentry.framework/Info.plist
.See also:
#skip-changelog (already released as 5.14.0-alpha.0)