Skip to content

iOS App Crashes on iPad w/ XCode 16.3/16.4RC and Sentry Maui SDK 5.7.0 #4207

@empdk

Description

@empdk

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

9.0.300

OS

iOS

OS Version

18.4/18.5

Development Environment

Visual Studio Code (MacOS)

SDK Version

5.7.0

Self-Hosted Sentry Version

No response

Workload Versions

Installed Workload Id Manifest Version Installation Source

maui 9.0.51/9.0.100 SDK 9.0.300

UseSentry or SentrySdk.Init call

builder.UseSentry(options =>
{
options.AttachScreenshot = true;
options.AttachStacktrace = true;
options.AutoSessionTracking = true;
options.CaptureFailedRequests = true;
options.CreateElementEventsBreadcrumbs = true;
options.DetectStartupTime = StartupTimeDetectionMode.Fast;
options.DiagnosticLevel = SentryLevel.Error;
options.DiagnosticLogger = new TraceDiagnosticLogger(SentryLevel.Error);
options.Dsn = builder.Configuration.GetSection("Sentry").GetValue("DSN");
options.EnableScopeSync = true;
options.IncludeBackgroundingStateInBreadcrumbs = true;
options.IncludeTextInBreadcrumbs = true;
options.IncludeTitleInBreadcrumbs = true;
options.IsGlobalModeEnabled = true;
options.MinimumBreadcrumbLevel = Microsoft.Extensions.Logging.LogLevel.Error;
options.MinimumEventLevel = Microsoft.Extensions.Logging.LogLevel.Error;
options.ProfilesSampleRate = 1.0;
options.SampleRate = 1.0f;
options.SendClientReports = true;
options.SendDefaultPii = true;
options.TracesSampleRate = 1.0;
});

Steps to Reproduce

  1. Upgrade XCode to 16.3/16.4
  2. Upgrade Maui workloads to 9.0.51
  3. Upgrade NET SDK to 9.0.300
  4. Upgrade Sentry SDK to 5.7.0
  5. Debug App

Expected Result

App does not crash

Actual Result

App crashes on launch. Crash log below. Removing Sentry SDK completely from the solution resolves crashing issue.

Code Type: ARM-64 (Native)
Date/Time: 2025-05-20 09:57:07.1745 -0500
Launch Time: 2025-05-20 09:57:07.1482 -0500
OS Version: iPhone OS 18.5 (22F76)
Release Type: User
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 4 Symbol missing
Symbol not found: OBJC_CLASS$_SentryEventDecodable
Referenced from: /Volumes/VOLUME//App.app/App
Expected in: /Volumes/VOLUME/
/App.app/Frameworks/Sentry.framework/Sentry
(terminated at launch; ignore backtrace)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions