Skip to content

Commit 69d0d07

Browse files
Removed code that sets the MarshalManagedExceptionMode
No longer necessary as we aren't using the UnhandledException event to catch these exceptions anymore
1 parent 6be8cfb commit 69d0d07

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Sentry/Platforms/Cocoa/SentrySdk.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ public static partial class SentrySdk
1010
private static void InitSentryCocoaSdk(SentryOptions options)
1111
{
1212
options.LogDebug("Initializing native SDK");
13-
// Workaround for https://github.com/xamarin/xamarin-macios/issues/15252
14-
ObjCRuntime.Runtime.MarshalManagedException += (_, args) =>
15-
{
16-
args.ExceptionMode = ObjCRuntime.MarshalManagedExceptionMode.UnwindNativeCode;
17-
};
1813

1914
// Set default release and distribution
2015
options.Release ??= GetDefaultReleaseString();

0 commit comments

Comments
 (0)