在纯AOT模式下运行时尝试JIT编译方法'Akavache.Sqlite3.Registrations:Register(Splat.IMutableDependencyResolver)'

时间:2019-03-21 10:13:35

标签: akavache

  • Xamarin.iOS
  • Xamarin.Forms 3.6
  • akavache v6.4.1
The type initializer for 'Akavache.BlobCache' threw an exception.
Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:Register (Splat.IMutableDependencyResolver)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.

在实际设备上运行调试时,只要调用以下代码,上面的错误就会被计数

Akavache.Registrations.Start("AppName");

试图在

中执行
    Xamarin.Forms.Forms.Init()之前/之后的
  • AppDelegate.cs;
  • PCL库App.cs OnStart()

全部抛出相同的错误

知道为什么要调用JIT吗?

谢谢

2 个答案:

答案 0 :(得分:1)

splat v7.1有一个修复程序,akavache已更新为在此PR https://github.com/reactiveui/Akavache/pull/472中使用它

还应注意以下错误https://github.com/reactiveui/splat/issues/292

答案 1 :(得分:0)

  • akavache v6.4.1
  • ReactiveUI 9.11.3
  • 不需要像提到的某些人那样将akavache安装到平台项目中
  • 清洁溶液(重要)

问题已解决

感谢@Glenn Watson