Repository navigation
Possible Sentry backward compatibility issue between 5.6.0 and 5.11.2 #4397
Description
Activity
- addedBugSomething isn't workingSomething isn't working.NETPull requests that update .net codePull requests that update .net code
on Jul 27, 2025 Relevant internal ticket: https://sentry.zendesk.com/agent/tickets/157458
- moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3
on Jul 28, 2025 Context:
SentryEventDecodablewas added in sentry-cocoa 8.45.0,
wheresentry-dotnet 5.6.0added it, butsentry-dotnet 5.8.0no longer has it.There should not be an issue with stored events from 5.8.0+ persisted on the device, where 5.6.0 could fail to decode them, because the Cocoa SDK doesn't call the decoding logic. Also, nothing changed how the Cocoa SDK serializes events to disk between these versions.
The issue seems to be related to how
Sentry.framworkis linked.
The issue may be caused through some leftover / stale files after the downgrade.
Perhaps the .NET iOS Workload does not register some files to be cleaned (i.e.<Clean Include=".." />).If a Clean / Rebuild does not resolve the issue (in cases that the .NET iOS Workload does not clean up all resources),
agit clean -dfxjust might.Could also be related to files outside of the code repository that uses Sentry:
For example Xcode: see~/Library/Developer/Xcode/DerivedData
and/or an Xcode project that needs to be regenerated.
Although the deprecated versions
[5.6.0,5.7.0]cannot be fixed retroactively,
and also the problem may not be directly related to the Sentry .NET SDK, but to the .NET iOS Workload,
perhaps we can uncover a local caching problem and provide guidance via Troubleshooting documentation.Hi @minori-fh, we should have a fix (#4411) for the upgrade problem. Could you give it a try with the 5.14.0-alpha.1 pre-release?
Fixed by #4411, which will be available in the next release.
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsNo status
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
9.0.300
OS
iOS
OS Version
No response
Development Environment
Rider 2024 (MacOS)
SDK Version
5.6.0
Self-Hosted Sentry Version
No response
Workload Versions
android 35.0.61/9.0.100 SDK 9.0.300
ios 18.4.9289/9.0.100 SDK 9.0.300
maui-android 9.0.51/9.0.100 SDK 9.0.300
maui-ios 9.0.51/9.0.100 SDK 9.0.300
maui-tizen 9.0.51/9.0.100 SDK 9.0.300
UseSentry or SentrySdk.Init call
Pending
Steps to Reproduce
Expected Result
App should run successfully after downgrade.
Actual Result
On launch, the app crashes at startup with the following error in Xcode logs: