File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Sentry.Bindings.Cocoa/buildTransitive Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
+
3
+ <!--
4
+ Workaround for https://github.com/xamarin/xamarin-macios/issues/15252
5
+ ensuring that Native AOT compile code does not get the wrong marshal-managed-exceptions
6
+ -->
7
+ <PropertyGroup Condition =" '$(PublishAot)' == 'true'" >
8
+ <MtouchExtraArgs >marshal-managed-exceptions:disable</MtouchExtraArgs >
9
+ <MtouchNoSymbolStrip Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" >True</MtouchNoSymbolStrip >
10
+ </PropertyGroup >
11
+
12
+ <PropertyGroup Condition =" '$(PublishAot)' == 'false' Or '$(PublishAot)' == ''" >
13
+ <MtouchExtraArgs >--marshal-managed-exceptions:unwindnativecode</MtouchExtraArgs >
14
+ </PropertyGroup >
2
15
3
16
<!--
4
17
Workaround to ensure the Sentry Cocoa SDK is present when using iOS "Hot Restart" deployments on Windows
13
26
14
27
<PropertyGroup >
15
28
<HotRestartPackageResourcesDir >$(TEMP)\Xamarin\HotRestart\Resources\</HotRestartPackageResourcesDir >
16
- <MtouchExtraArgs Condition =" '$(PublishAot)' == 'true'" >--marshal-objectivec-exceptions:disable</MtouchExtraArgs >
17
29
</PropertyGroup >
18
30
19
31
<ItemGroup >
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ public static partial class SentrySdk
10
10
private static void InitSentryCocoaSdk ( SentryOptions options )
11
11
{
12
12
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
- } ;
18
13
19
14
// Set default release and distribution
20
15
options . Release ??= GetDefaultReleaseString ( ) ;
You can’t perform that action at this time.
0 commit comments