Closed anders9ustafsson closed 6 years ago
I have tried to run the simulator instead, in both Debug and Release modes, but I still experience the same missing DLL exception.
Issue is present both when building/deploying from Visual Studio on Windows and Mac.
Found the error!
In the LinphoneWrapper
class, the following string constants are defined:
#if WINDOWS_UWP
public const string BELLE_SIP_LIB_NAME = "bellesip";
public const string BCTOOLBOX_LIB_NAME = "bctoolbox";
#else
public const string BELLE_SIP_LIB_NAME = "linphone";
public const string BCTOOLBOX_LIB_NAME = "linphone";
#endif
However, for iOS, these library names should be linphone.framework/linphone
, which is apparent from this definition in the same class:
#if __IOS__
public const string LIB_NAME = "linphone.framework/linphone";
#else
public const string LIB_NAME = "linphone";
#endif
As far as I can tell, the simplest approach is therefore to redefine BELLE_SIP_LIB_NAME
and BCTOOLBOX_LIB_NAME
for Android and iPhone as such:
#else
public const string BELLE_SIP_LIB_NAME = LIB_NAME;
public const string BCTOOLBOX_LIB_NAME = LIB_NAME;
#endif
As far as I can tell, this issue has been fixed in a recent commit of linphone-xamarin, so I am closing it now.
@anders9ustafsson Sir i'm having same issue in Xamarin.Androind building on Windows. Any help please?
I'm getting that same error but it looks like it's because IOS isn't defined.
Have built and deployed LinphoneXamarin.iOS sample app in Debug mode on my iPhone. When running the app, I get the following exception: