Forum Xamarin.iOS


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

SQLite TypeInitializationException on WatchOS 4

Motoko89Motoko89 USMember ✭✭

Hi all, does SQLitePCLRaw supports WatchOS at all? I saw this github issue

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

Sign In or Register to comment.