简体   繁体   中英

Xamarin iOS: System.ExecutionEngineException. Details: attempting to JIT compile method while running in aot-only mode

In my project I use Microsoft.Data.Sqlite package to work with sqlite databases. On Android platform all things work ok, but on iOS platform I get this exception when application tries to interact with sqlite database:

Xamarin iOS: System.ExecutionEngineException. Details: attempting to JIT compile method '(wrapper delegate invoke) void :invoke_calvirt_void_SqliteParameter_Sqlite_Type)' while running in aot-only mode.

The strange thing is that all things work ok on simulator, but on actual device I get the exception.

How can I fix that?

To fix this issue, open iOS Xamarin project, iOS build properties and enable option Enable the Mono interpreter . After that rebuild the application and redeploy on the actual device.

截屏

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM