MAUI Mobile App crash on TestFlight (SIGABRT)
MAUI Mobile App crash on TestFlight
If your MAUI mobile application work fine on iOS device in debug mode but crash on launch when published with TestFlight, try to edit MAUI Visual Studio project file.
In Release for iOS configuration add the following two lines:
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-ios|AnyCPU'">
...
...
<MtouchLink>SdkOnly</MtouchLink>
<UseInterpreter>true</UseInterpreter>
<MtouchExtraArgs>--optimize:-static-block-to-delegate-lookup</MtouchExtraArgs>
</PropertyGroup>
In my case the error from AppCenter is:
libsystem_kernel.dylib
__pthread_kill
libsystem_c.dylib
abort
IemmaMobileApp
0x104008000 + 897144
IemmaMobileApp
0x104008000 + 4720684
IemmaMobileApp
0x104008000 + 4720868
IemmaMobileApp
0x104008000 + 4720936
IemmaMobileApp
0x104008000 + 2779268
IemmaMobileApp
0x104008000 + 2788300
IemmaMobileApp
0x104008000 + 3562260
IemmaMobileApp
0x104008000 + 3561884
libsystem_pthread.dylib
_pthread_start
libsystem_pthread.dylib
thread_start