Maui App crashed on IOS but only in Release mode #35388
Replies: 3 comments
-
|
After some more tests, I think I found the problem. I use EF Core to open and use a SQLite database and if I remove the whole DB stuff, the app starts in Release mode. I am happy to know after a lot of hours searching what causes this problem, but is there someone out there who can help me out to solve this problem? |
Beta Was this translation helpful? Give feedback.
-
|
Hi. This could help: https://blog.verslu.is/maui/exclude-assemblies-from-trimming/ |
Beta Was this translation helpful? Give feedback.
-
|
I think I also came up with that at some point, I think one solution was to compile the DbContext. However I ended up using Sqlite-net. If the queries are not too big or you don't need advanced features I would go for Sqlite-net. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have written a MAUI App that should run on Android and iPhone and everything is working fine if I run the app in Debug mode. If I switch to Release, it works fine on Android but not on IOS!
I reduces my code to a minimum and removed all 3rd party libraries, but no luck, after a short display of the splash screen, it crashes and I have no idea how to solve this problem.
I use a Mac mini and Visual Studio 2026 to build the app. I also tried Rider, but no luck...
I attached the log file from iPhone, but for me it does not help!
If there is anyone outside, who can give me a hint, it would be really great!
Thx and regards!
Günter
Kalb.Web.PnApp-2026-05-12-084230.log
Beta Was this translation helpful? Give feedback.
All reactions