-
Notifications
You must be signed in to change notification settings - Fork 24
Description
As discovered in #36 trying to run code using this dependency will sometimes cause this or a similar error message to appear:
System.DllNotFoundException: 'libmagic-1 assembly: type: member:(null)'
Since this is almoast the same issue as in #36 it can easily be fixed on Win-x64 machines running Xamarin.UWP by simply moving the libmagic files to the current bin folder as previously discussed.
But on Xamarin.Android the libmagic files need to be inserted into the apk file manually with an apk editor each time the app is build and are only supported by x64 devices, so that they have to be recompiled for ARM Android. I have not managed to get it working successfully yet and I have no way to test compability for iOS devices but expect the same issue there as well.
I actually neither know how to create the shared libraries for android that I guess are needed nor do I know if there is a simpler method to fix this issue. If anyone has an idea how to fix this issue and what to do with the libmagic .so and .mgc files on these mobile platforms I would be happy to hear about it :)