Forum Xamarin.iOS

SQLite TypeInitializationException on WatchOS 4

Motoko89Motoko89 USMember ✭✭

Hi all, does SQLitePCLRaw supports WatchOS at all? I saw this github issue https://github.com/akavache/Akavache/issues/391

If not, what can I do to have SQLite working on my WatchOS app extension?

Currently I'm seeing this exception:

2017-12-25 16:32:08.344 KenZenSoftFitMateFormsiOSWatchExtension[89116:9403343] 
    Unhandled Exception:
    System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception. ---> System.Exception: This is the 'bait'.  You probably need to add one of the SQLitePCLRaw.bundle_* nuget packages to your platform project.
    at SQLitePCL.Batteries_V2.Init () [0x00000] in <42110d6b351f4655a085342a4b8b4da0>:0 
    at SQLite.SQLiteConnection..cctor () [0x00000] in /Users/vagrant/git/src/SQLite.cs:169 
    --- End of inner exception stack trace ---

Even though I already added all the required packages like those on my Xamarin iOS project

Tagged:
Sign In or Register to comment.