admin管理员组

文章数量:1123509

I developed a MAUI app (.NET 8 with Visual Studio 2022) that runs without any problem on Android on physical devices (3+ devices tested) and on my local emulator: never had a startup problem.

I deployed it (Debug mode) on iOS (iPhone SE with iOS 15.8.3) but I cannot start it, because it crashes during the (very long!) splash screen time. I am 100% sure it's not my app's fault because I quickly create a new .NET MAUI sample app and it has exactly the same problem.

I don't have any useful log (no stack trace available) and the Output Window just says:

Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Private.CoreLib.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Collections.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Runtime.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/Microsoft.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Runtime.InteropServices.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Threading.Thread.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Threading.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Net.Http.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Net.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Numerics.Vectors.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Net.Sockets.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Drawing.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/9715675F-79F0-48D4-987D-18A224580DDD/MauiApp1.app/System.Private.Uri.dll [External]
L'app è stata terminata.

After many tries, I could only run it manually after deploying in Release Mode, but I cannot start it from Visual Studio and I cannot debug it. In Debug mode I can deploy it but I cannot start it in any way, even manually.

I also tried this option in my project configuration with no luck:

<UseInterpreter>true</UseInterpreter>

I already restarted everything multiple times.

Any suggestion to fix this situation? Is there any iOS-specific log that I can inspect?

I don't have a Mac so I cannot try the iOS simulator or other Mac-related solutions.

I found a few similar posts on the web but no working solutions:

本文标签: MAUI app crashes on iOS during splash screenStack Overflow