MAUI Crash on IOS on real device in release mode if using SQLite

I created an empty MAUI project and just added the sqlite-net-pcl nuget package. If try to run it in release mode or publish it, it crashes during startup something with AOT and SQLite.

If I use realease mode or publish the same project with Visual Studio 2026 it did'nt crash and work as expected.

 

Upload id: 2026_08_05_8kMCf1SjSwL4sryXEjvNF7 (file: MauiSqliteReleaseCrash.zip)

0
1 comment

Hello Freudi T ,

Thank you for contacting the Rider forum, and for the sample project.

I was not able to reproduce the issue with the provided sample solution on my side. This suggests the crash may depend on something specific to your environment or build configuration.

The behaviour, however, looks similar to a known issue: RIDER-134098 MAUI app published to folder crashes on launch on iOS device. There, a MAUI iOS app built from Rider crashes on launch on a real device, while the same project published with dotnet publish from the command line works as expected — close to the difference you see against Visual Studio 2026. 

As far as I see, the interpreter may not be enabled in Rider's build and publish flow. In aot-only mode, the reflection that sqlite-net-pcl uses for its ORM mapping cannot be JIT-compiled at runtime, which would make the app fail during startup.

Hence, could you please try adding <UseInterpreter>true</UseInterpreter> to your project configuration and check whether the crash still occurs?

Since the issue is not reproducible on our side, we will need some additional information to investigate it properly. Could you please share:

1. The exact crash message from the device log;
2. The full log bundle: collected via Help | Collect Logs and Diagnostic Data right after reproducing the issue.

Load the logs to our shared storage at https://uploads.jetbrains.com and share the ID.

Thank you in advance and have a great day!

0

Please sign in to leave a comment.