0

I got an AOT instance dll error while building/publishing my .NET 8 MAUI ios app in release mode. No problem with the debug mode.

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/targets/Xamarin.Shared.Sdk.targets(1266,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 1.

I have tried all the tags in the project file, still no result. While using <UseInterpreter>true</UseInterpreter>, the app builds, but crashes after the splash screen.

I have been stuck on this issue for a while now. Please help me to solve it.

I'll share my repo if needed ;-)

1
  • <UseInterpreter>true</UseInterpreter> solved the original error. Probably this question should be closed. ----- "... but crashes after the splash screen" is a different symptom. Not enough information provided to help with that. Set aside your project. Make a new MAUI project, see if you can get that AOT compiled and running on iOS. If so, then consider gradually adding in your code, until it crashes. I would do this first without a splash screen. Commented Jul 5 at 0:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.