-
Notifications
You must be signed in to change notification settings - Fork 545
Description
Apple platform
iOS
Framework version
net9.0-*
Affected platform version
.NET 8, .NET 9, VS 17.14.6
Description
Reported originally:
User's description:
When trying to build our Maui project we're getting the following 4 errors:
The xcframework C:\Users******.nuget\packages\sentry.bindings.cocoa\5.10.0\lib\net8.0-ios17.0\Sentry.Bindings.Cocoa.resources.zip has an incorrect or unknown format and cannot be processed.
Can't process the zip file 'C:\Users******..nuget\packages\sentry.bindings.cocoa\5.10.0\lib\net8.0-maccatalyst17.0\Sentry.Bindings.Cocoa.resources.zip' on this platform: the file 'Sentry-Dynamic.xcframework/ios-arm64_arm64e_x86_64-maccatalyst/Sentry.framework/PrivateHeaders' is a symlink.
Can't process the zip file 'C:\Users******..nuget\packages\sentry.bindings.cocoa\5.10.0\lib\net8.0-maccatalyst17.0\Sentry.Bindings.Cocoa.resources.zip' on this platform: the file 'Sentry-Dynamic.xcframework/ios-arm64_arm64e_x86_64-maccatalyst/Sentry.framework/Resources' is a symlink.
The xcframework C:\Users******..nuget\packages\sentry.bindings.cocoa\5.10.0\lib\net8.0-maccatalyst17.0\Sentry.Bindings.Cocoa.resources.zip has an incorrect or unknown format and cannot be processed.
Updating Visual Studio to 17.14.6 (June 2025) is the cause - I guarantee it. Everything built correctly yesterday, but clearly Microsoft have changed something in their Maui compilation that's caused this mismatch with Sentry.
Steps to Reproduce
Add Sentry.Maui
to a blank app.
Initialize it with:
.UseSentry(options =>
{
//The DSN is the only required setting
options.Dsn = **************;
#if DEBUG
options.Debug = true;
options.TracesSampleRate = 1.0;
#else
options.TracesSampleRate = 0.2;
#endif
//All other Sentry options
options.IsGlobalModeEnabled = true;
options.IncludeTextInBreadcrumbs = true;
options.IncludeTitleInBreadcrumbs = true;
options.IncludeBackgroundingStateInBreadcrumbs = true;
options.AttachStacktrace = true;
options.CaptureFailedRequests = true;
});
Did you find any workaround?
Revert the Visual Studio version to 17.14.5