App crashes on start in TestFlight

Hi, I have a .NET MAUI app running on .NET 9. When I test locally in debug or release mode it works perfectly fine, but when testing from TestFlight it crashes almost immediately every time. I have sent the crash report to TestFlight and produced the symbolicated.crash file (attached), but I'm not sure it's helpful for understanding how to fix the issue.

If anyone can help me understand what the issue might be and any possible fixes it'd be very much appreciated.

I'm developing using Visual Studio 2022 paired to my Mac. I have distributed previously without issue, but now can't seem to, even after reverting recent code.

<TargetFrameworks>net9.0-ios</TargetFrameworks> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>

Answered by DTS Engineer in 854615022
7   libsystem_c.dylib             	0x000000018decc2d0 abort + 124 (abort.c:122)
8   AppName                    	0x00000001048a19cc mono_log_write_os_log + 38214092 (mono-log-darwin.c:0)
9   AppName                    	0x0000000104897454 monoeg_g_logv + 38171732 (goutput.c:173)
10  AppName                    	0x000000010489759c monoeg_g_log + 38172060 (goutput.c:184)
11  AppName                    	0x00000001049b986c load_aot_module + 39360620 (aot-runtime.c:2406)
12  AppName                    	0x00000001048f55b4 mono_assembly_request_load_from + 38557108 (assembly.c:2020)
13  AppName                    	0x00000001048f50d0 mono_assembly_request_open + 38555856 (assembly.c:1625)
14  AppName                    	0x00000001048f6370 mono_assembly_open + 38560624 (assembly.c:1828)
15  AppName                    	0x0000000104838524 xamarin_assembly_preload_hook + 37782820 (monotouch-main.m:0)

This stack shows your app is crashing in code from Xamarin. Note that frame 8 and 7 show their code directly called abort(), which will cause the process to terminate. You should follow up with the support for Xamarin to learn how to set things up so you don't encounter this abort via their library.

— Ed Ford,  DTS Engineer

7   libsystem_c.dylib             	0x000000018decc2d0 abort + 124 (abort.c:122)
8   AppName                    	0x00000001048a19cc mono_log_write_os_log + 38214092 (mono-log-darwin.c:0)
9   AppName                    	0x0000000104897454 monoeg_g_logv + 38171732 (goutput.c:173)
10  AppName                    	0x000000010489759c monoeg_g_log + 38172060 (goutput.c:184)
11  AppName                    	0x00000001049b986c load_aot_module + 39360620 (aot-runtime.c:2406)
12  AppName                    	0x00000001048f55b4 mono_assembly_request_load_from + 38557108 (assembly.c:2020)
13  AppName                    	0x00000001048f50d0 mono_assembly_request_open + 38555856 (assembly.c:1625)
14  AppName                    	0x00000001048f6370 mono_assembly_open + 38560624 (assembly.c:1828)
15  AppName                    	0x0000000104838524 xamarin_assembly_preload_hook + 37782820 (monotouch-main.m:0)

This stack shows your app is crashing in code from Xamarin. Note that frame 8 and 7 show their code directly called abort(), which will cause the process to terminate. You should follow up with the support for Xamarin to learn how to set things up so you don't encounter this abort via their library.

— Ed Ford,  DTS Engineer

App crashes on start in TestFlight
 
 
Q