0

Fine on debug, but on release I get...

Error MT3001: Could not AOT the assembly Akavache.Sqlite3.dll' (MT3001) (iOS)

Any ideas? Akavache.Sqlite3 is version 5.0.0.

I found this from five years ago. Not sure what to make of it.

EDIT:

In the docs, it says...

Handling Xamarin Linker Add the following class anywhere in your project to make sure Akavache.Sqlite3 will not be linked out by Xamarin

public static class LinkerPreserve
{
  static LinkerPreserve()
  {
    var persistentName = typeof(SQLitePersistentBlobCache).FullName;
    var encryptedName = typeof(SQLiteEncryptedBlobCache).FullName;
  }
}

What is "Linked out"? If I comment out the "encryptedName" line, then it compiles. This makes sense because Akavache doesn't do encryption - so I'm guessing missing encryption code is causing a linker error.

Oh, I take it back. It works with both lines in. No error at all. Although the app crashes on start up.

Ian Warburton
  • 15,170
  • 23
  • 107
  • 189

0 Answers0