LibVLCSharp.Forms: System.DllNotFoundException: libvlc
Hi There!
I'm trying to use the LibVLCSharp.Forms in my project but got a System.DllNotFoundException when the application starts. Following the stack trace:
System.DllNotFoundException: libvlc
at at (wrapper managed-to-native) LibVLCSharp.Shared.LibVLC+Native.LibVLCNew(int,intptr[])
at LibVLCSharp.Shared.LibVLC+<>c__DisplayClass12_0.<.ctor>b__0 () [0x0000e] in :0
at LibVLCSharp.Shared.Internal..ctor (System.Func1[TResult] create, System.Action
1[T] release) [0x0000d] in :0
at LibVLCSharp.Shared.LibVLC..ctor (System.String[] args) [0x00023] in :0
at LibVLCSharp.Platforms.iOS.VideoView..ctor (System.String[] cliOptions) [0x00006] in :0
at LibVLCSharp.Forms.Platforms.iOS.VideoViewRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs1[TElement] e) [0x0001b] in <687caba997c44f2bac2e1f24ddb40184>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer
1[TElement].SetElement (TElement element) [0x0012a] in <2dda3b1bfacd483c96a064e61838cf65>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x00086] in <2dda3b1bfacd483c96a064e61838cf65>:0 at at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr) at UIKit.UIViewController.get_View () [0x00030] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIViewController.g.cs:2983 at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00008] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0004f] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) [0x00008] in <2dda3b1bfacd483c96a064e61838cf65>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer+<OnPushAsync>d__47.MoveNext () [0x0001d] in <2dda3b1bfacd483c96a064e61838cf65>:0 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 at System.Runtime.CompilerServices.TaskAwaiter
1[TResult].GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357
at Xamarin.Forms.Platform.iOS.NavigationRenderer+<b__42_0>d.MoveNext () [0x00069] in <2dda3b1bfacd483c96a064e61838cf65>:0
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
at UIKit.UIKitSynchronizationContext+c__AnonStorey0.<>m__0 () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIKitSynchronizationContext.cs:24
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/Foundation/NSAction.cs:163
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.9.1.24/src/Xamarin.iOS/UIKit/UIApplication.cs:63
at CG4U.Security.ClientApp.iOS.Application.Main (System.String[] args) [0x00001] in /Users/danieldangeloresendebarros/Projects/cg4u/security/client/app/cg4u.security/iOS/Main.cs:17
By the way, I had to come back to version LibVLCSharp.Forms.0.0.1-alpha instead of 0.0.1-alpha1 because I got an odd operational system exception and could not debug the program. But maybe this is another issue ;)
Thanks a lot.
Dan Barros