BelledonneCommunications / linphone-xamarin

Linphone.org mirror for linphone-xamarin (git://git.linphone.org/linphone-xamarin.git)
https://www.linphone.org/
GNU General Public License v3.0
26 stars 21 forks source link

System.DllNotFoundException: linphone #42

Open JoeHenderson1962 opened 3 years ago

JoeHenderson1962 commented 3 years ago

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

marcowi commented 3 years ago

Did you fix this?

KwasiVT commented 3 years ago

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

marcowi commented 3 years ago

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.

KwasiVT commented 3 years ago

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

asadcr commented 1 year ago

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

headintheclouds21 commented 6 months ago

Does anyone know if this has been fixed?