Skip to content

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

Closed

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)

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 20, 2025
  2. changed the title [-]iOS App Crashes on iPad w/ XCode 16.3 and Sentry Maui SDK 5.7.0[/-] [+]iOS App Crashes on iPad w/ XCode 16.3/16.4RC and Sentry Maui SDK 5.7.0[/+] on May 20, 2025
  3. jamescrosswell commented on May 21, 2025

    @jamescrosswell
    Collaborator

    @empdk I think this is related to broken bindings in 5.6.0.

    You could try downgrading the version 5.5.1. If that resolves the issue, a fix should be included in version 5.8.0 when this is available (should hopefully be within a day).

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 21, 2025
  5. empdk commented on May 21, 2025

    @empdk
    Author

    You could try downgrading the version 5.5.1. If that resolves the issue, a fix should be included in version 5.8.0 when this is available (should hopefully be within a day).

    @jamescrosswell Thanks for the quick reply. Downgrading to version 5.5.1 did not resolve the issue. I am now getting compiler errors. The compile output did show that it failed to download the Sentry Cocoa 5.5.1 dependency. I manually installed that dependency but the main compiler error that symbols are missing for arm64 architecture is persisting.

    clang++ exited with code 1:
    Undefined symbols for architecture arm64:
    "OBJC_CLASS$_SentryCrashExceptionApplication", referenced from:
    in registrar.o
    ld: symbol(s) not found for architecture arm64
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)

  6. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 21, 2025
  7. bruno-garcia commented on May 21, 2025

    @bruno-garcia
    Member

    We just shipped a version that rollback the broken iOS SDK:

    https://github.com/getsentry/sentry-dotnet/releases/tag/5.8.0

  8. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 21, 2025
  9. empdk commented on May 21, 2025

    @empdk
    Author

    Thanks. I was able to successfully get the application running w/ 5.8.0 on iOS 18.4 and XCode 16.3.

  10. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 21, 2025
  11. jpnurmi commented on Aug 6, 2025

    @jpnurmi
    Collaborator

    Hi @empdk, we should now have a fix (#4411) for the symbol mismatch problem. Could you, by any chance, help us verify the fix and try upgrading to the 5.14.0-alpha.1 pre-release to see if the application runs ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions