[iOS] Attempting to JIT compile method while running in aot-only mode when using AutoMapper on iOS with .NET 8 #20611
Labels
need-repro
Waiting for a test case before the bug can be investigated
Hello,
I'm working on a Xamarin.iOS migration to .NET 8. However encounter a runtime crash "JIT compile method while running in aot-only mode"
I've read up a few past issues / articles around JIT/AOT crashes in Xamarin / Xamarin.Form and the workaround solution in the past e.g.
#15681
However this workaround doesn't seem to work in .NET 8 as it trigger a crash at app launching.
Please see the detail below and wonder if there is fix in .NET 8 with AutoMapper on iOS
Steps to Reproduce
TargetObject targetObject = mapper.Map<TargetObject>(info);
Expected Behavior
Target object can be created
Actual Behavior
Environment
Version information
Build Logs
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: