Why NetMaui Apps Crash in Release Mode on iOS Devices — A Journey to the Solution

Paul Willy Hammer
4 min readJun 19, 2024

--

Discover why NetMaui apps often crash in release mode on iOS devices and how to fix it. Through my journey of debugging and research, I found that AOT (Ahead-of-Time Compilation), especially with JSON serialization libraries, was the issue. By excluding AOT for these libraries, I stabilized my app. Learn this simple yet effective tweak to ensure your app runs smoothly and avoids frustrating crashes. Dive into the code and see the difference!

--

--

Paul Willy Hammer

PWH, a senior software developer, excels in creating efficient .NET applications, always eager to share insights and best practices in software development.