linphone-xamarin
linphone-xamarin copied to clipboard
System.DllNotFoundException: linphone
I'm getting this error and it looks like it's because "IOS" isn't defined in LinphoneWrapper.cs when building my Xamarin solution.
System.DllNotFoundException: linphone at Linphone.LoggingService.get_Instance () [0x00001] in /Users/joehenderson/Documents/source/repos/Infinity.ARA/Infinity.ARA/Infinity.ARA/LinphoneWrapper.cs:20100
Did you fix this?
Has Anyone found a solution for this. Does anybody look at these issues. IS THERE ANYONE OUT THERE!!!!!!
Well, kind of. The problem is that you probably created a new Xamarin project which has another layout than the sample and simply loads in a "wrong" order. Thus the __IOS__
is not set when the LinphoneWrapper.cs is loaded. You can either change the path to the LIB_NAME in the LinphoneWrapper.cs itself by changing the #else-branch (around line 41) to
public const string LIB_NAME = "linphone.framework/linphone";
or inject the environment variable __IOS__
before the wrapper is being loaded.
I've done that I got it to work for the linphone 4.3-4.4 sdks but when I try it with the 4.5 and higher sdks I get an DLLNotFound Exception
@KwasiVT Thanks. i got it to work with 4.3 as well. Anything higher results in same issue on IOS as well. Is there anybody who could just fix it.
Does anyone know if this has been fixed?