lex.db
lex.db copied to clipboard
Xamarin Forms iOS - Path is Null
I'm developing a cross platform app in Xamarin Forms. I have added Lex.DB to my Portable Class Library. When I try to call Initialize() on DbInstance, I receive a NullReferenceException error. This only happens in iOS (both device and simulator), but it works fine on Android. I notice that the Path property is null on DbInstance (see screenshot).
What am I doing wrong here?
I'm not 100% sure, but I guess that your main iOS application does not reference Lex.DB. This is required step for bait&switch PCL deployment.
Kind regards, Lex
On 22 Feb 2016, at 19:24, "iupchris10" [email protected] wrote:
I'm developing a cross platform app in Xamarin Forms. I have added Lex.DB to my Portable Class Library. When I try to call Initialize() on DbInstance, I receive a NullReferenceException error. This only happens in iOS (both device and simulator), but it works fine on Android. I notice that the Path property is null on DbInstance (see screenshot).
What am I doing wrong here?
— Reply to this email directly or view it on GitHub.
Thanks for responding - I have tried both with & without reference in the native iOS project, to no avail. I should note that it also does not work in Native Xamarin.iOS (see screenshot).
I am using Xamarin Studio, if that matters...
I'm using v1.2.6
UPDATE:
I manage to get it working if I build the Lex.Db.IOS project from source and then reference the resulting Lex.Db.DLL file in my iOS project, instead of using the NuGet package. My PCL is still using the NuGet package.
It seems I only have an issue when I add Lex.Db from NuGet.
@iupchris10 Hi Cris, I am too developing app in Xamarin forms. Me too getting https://github.com/step-up-labs/firebase-database-dotnet/issues/75 error. Does it required to install NuGet Package in all Platforms specific projects too. Can you share your sample project. Thanks in advance.