I have a simple app using SQLite exactly as outlined in the Working with.. Local databases guide on the Xamarin site. (http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/databases/)
My problem is that my app crashes in release mode on executing this line:
database = DependencyService.Get<ISQLite> ().GetConnection ();
Everything works in Debug mode, and it also works in release mode if I "enable debugging" under iOS Build/Debugging Options.
Changing Linker behaviour have no effect. (I have tried all).
Putting this in my AppDelegate.cs also works fine:
var x = new SQLite_iOS ();
x.GetConnection ();
I have double checked and I don't do anything else than described in the before mentioned guide. I have commented out all other code in my app to isolate the problem.
Any ideas? I would appreciate any help.
Thank you,