linphone-xamarin icon indicating copy to clipboard operation
linphone-xamarin copied to clipboard

System.DllNotFoundException: linphone

Open JoeHenderson1962 opened this issue 4 years ago • 6 comments

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

JoeHenderson1962 avatar Feb 10 '21 23:02 JoeHenderson1962

Did you fix this?

marcowi avatar May 19 '21 11:05 marcowi

Has Anyone found a solution for this. Does anybody look at these issues. IS THERE ANYONE OUT THERE!!!!!!

KwasiVT avatar Sep 14 '21 14:09 KwasiVT

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.

marcowi avatar Sep 14 '21 16:09 marcowi

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 avatar Sep 15 '21 12:09 KwasiVT

@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.

asadcr avatar Nov 13 '22 17:11 asadcr

Does anyone know if this has been fixed?

headintheclouds21 avatar Feb 23 '24 15:02 headintheclouds21