Lightning.NET
Lightning.NET copied to clipboard
Support for Xamarin.iOS
Hi
I attempted to use this library in a Xamarin.iOS and received the following exception:
System.DllNotFoundException: lmdb assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) LightningDB.Native.Lmdb.mdb_env_create(intptr&)
at LightningDB.LightningEnvironment..ctor (System.String path, LightningDB.EnvironmentConfiguration configuration) [0x00030] in <83a69e57559a4104865e28c7fe2fd683>:0
at TestApp.AppDelegate.FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) [0x00001] in C:\test\TestApp\AppDelegate.cs:24
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.Type principalClass, System.Type delegateClass) [0x00047] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:79
at TestApp.Application.Main (System.String[] args) [0x00001] in C:\test\TestApp\Main.cs:12
That's probably because there is no native library for Xamarin.iOS available in the nuget package or it does not get copied. At least in theory it should be possible to support Xamarin.iOS as lmdb supports iOS as well. I would like to get this work and any help is welcome as I am not very experienced in this field.
Regards Claudio
I don't use Xamarin myself, so on this one I would be happy to take a pull request if someone would be willing to continue helping support it occasionally.