I developed an app with the MAUI framework. The app works fine in debugging mode, but when switching to release mode with a distribution certificate and uploading it to TestFlight(MAUI iOS), it crashes immediately on launch
Specifically, this issue happens after updating the MAUI .NET framework from .NET 8.0 to .NET 9.0 and Xcode version to 16.4.
Is there any common possibility that causes this issue?
-
Have you tried running the app in the release mode, and after that, have you checked the logs? This might be related to your framework, which won't have some permissions required while running in release mode. In schema you can set running mode to release and then try.msusare– msusare2025年07月31日 06:32:41 +00:00Commented Jul 31, 2025 at 6:32
1 Answer 1
I had to add this:
<MtouchLink>SdkOnly</MtouchLink>
<MtouchInterpreter>-all,SixLabors.ImageSharp</MtouchInterpreter>
Also, I would not bother dealing with test flight, until this is resolved.
You can add provisioning profile for ADHOC distribution to your application, select your test device, and sign it with the distribution certificate. (To see the newly created profile you still have to go to tools>options>xamarin>Apple Account and download the profiles to refresh them).
And then you can prepare the archive, distribute it ADHOC to prepare the .ipa. And then upload the .ipa to see if it works properly, drag-dropping it to ITunes while your test device is connected to your PC.
Comments
Explore related questions
See similar questions with these tags.