Skip to content

[Breaking change]: UnwindNativeCode isn't supported on Apple targets #56481

Closed

Description

@vitek-karas

Description

UnwindNativeCode isn't supported on Apple targets

Version

.NET 11

Previous behavior

Apple projects that used Mono could set
MarshalManagedExceptionMode=UnwindNativeCode.

New behavior

CoreCLR doesn't support MarshalManagedExceptionMode=UnwindNativeCode. The
Apple workload reports error 0185.

Type of breaking change

  • Source incompatible
  • Binary incompatible
  • Behavioral change

Reason for change

CoreCLR doesn't support unwinding managed exceptions through native stack
frames in this mode.

Recommended action

  • Remove MarshalManagedExceptionMode=UnwindNativeCode.
  • Catch managed exceptions before they cross native code.
  • Return a status value, create an Objective-C exception, or use a supported
    abort policy.

Feature area

Interop

Affected APIs

None. This change affects the MarshalManagedExceptionMode MSBuild property.

@rolfbjarne @matouskozak


Associated WorkItem - 640006

Activity

  1. added
    breaking-change
    on Oct 20, 2026
  2. added
    🗺️ reQUEST
    and removed
    ⌚ Not Triaged
    on Oct 21, 2026
  3. added
    🗺️ mapQUEST
    on Oct 21, 2026
  4. removed
    🗺️ mapQUEST
    on Oct 21, 2026
  5. added
    🗺️ mapQUEST
    on Oct 21, 2026
  6. moved this from 🔖 Ready to 👀 In review in dotnet/docs October 2026 Sprint projecton Oct 21, 2026
  7. removed
    🗺️ mapQUEST
    on Oct 21, 2026
  8. added
    📌 seQUESTered
    and removed
    🗺️ reQUEST
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredbreaking-change

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions