ExecutionEngineException in NHibernate in Xamarin Forms iOS

cwittcwitt Member ✭✭

Has anyone been successful in using NHibernate in Xamarin forms for iOS?

We finally got everything set up to build on an actual device and not the simulator and when we go to start a session the following exception gets thrown:

Unhandled Exception:

System.ExecutionEngineException: Attempting to JIT compile method 'NHibernate.Bytecode.Lightweight.ReflectionOptimizer:CreateDynamicMethod (System.Type,System.Type[])' while running in aot-only mode. See http s://docs.microsoft.com/xamarin/ios/internals/limitations for more information.

2019-04-16 15:13:02.163 MediView.Mobile.NETCore.iOS[290:6922]
Unhandled Exception:
System.ExecutionEngineException: Attempting to JIT compile method 'NHibernate.Bytecode.Lightweight.ReflectionOptimizer:CreateDynamicMethod (System.Type,System.Type[])' while running in aot-only mode. See http s://docs.microsoft.com/xamarin/ios/internals/limitations for more information.

at NHibernate.Bytecode.Lightweight.ReflectionOptimizer.GenerateGetPropertyValuesMethod (NHibernate.Properties.IGetter[] getters) [0x00021] in <6a21298c8bf24583b7926240093786b7>:0
at NHibernate.Bytecode.Lightweight.ReflectionOptimizer..ctor (System.Type mappedType, NHibernate.Properties.IGetter[] getters, NHibernate.Properties.ISetter[] setters) [0x00024] in <6a21298c8bf24583b7926240093786b7>:0
at NHibernate.Bytecode.Lightweight.BytecodeProviderImpl.GetReflectionOptimizer (System.Type mappedClass, NHibernate.Properties.IGetter[] getters, NHibernate.Properties.ISetter[] setters) [0x00000] in <6a21298c8bf24583b7926240093786b7>:0
at NHib

Thanks for any help you can give.

Sign In or Register to comment.