Closed matt-goldman closed 6 years ago
Hi @matt-goldman,
Did you also install LibVLCSharp.Forms in the iOS project?
If you could share a repository with a repro of the issue, that'd be great.
Also try updating to the latest version of the packages (both of them)
Hi @mfkl thanks for your help. I have this working now. Took the following steps:
And now it works.
Thanks again!
Dear @matt-goldman I followed your steps, but i still get the error :( (System.DllNotFoundException: libvlc) Could you please help me? Best Regards
Please open your own issue, detailing what you've done, the versions you have installed, the environment you're working on (OS, IDE, target devices...). A project reproducing your issue would be greatly appreciated.
Need some help please - setting up a test app using Xamarin.Forms. I've installed LibVLCSharp.Forms into my shared app (using .net standard) and VideoLAN.LinbVLC.iOS into my IOS application. Other than that, I've basically just done exactly the same as what you've done in your test app, but I get the following error when launching:
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.Func: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.ElementChangedEventArgs
1[TResult] create, System.Action
1[T] release) [0x0000d] in1[TElement] e) [0x0001b] in <910f05b927974c698577083dc38a9836>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer
1[TElement].SetElement (TElement element) [0x0013c] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0004d] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x00086] in <2a59efab866341818ab4748ebe270f0a>:0 at at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr) at UIKit.UIViewController.get_View () [0x0002a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIViewController.g.cs:2938 at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00008] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0004f] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.Platform.AddChild (Xamarin.Forms.VisualElement view) [0x00027] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.Platform.WillAppear () [0x00043] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.PlatformRenderer.ViewWillAppear (System.Boolean animated) [0x00016] in <2a59efab866341818ab4748ebe270f0a>:0 at at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend(intptr,intptr) at UIKit.UIWindow.MakeKeyAndVisible () [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIWindow.g.cs:258 at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.SetMainPage () [0x0000c] in <2a59efab866341818ab4748ebe270f0a>:0 at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.FinishedLaunching (UIKit.UIApplication uiApplication, Foundation.NSDictionary launchOptions) [0x00030] in <2a59efab866341818ab4748ebe270f0a>:0 at PESPOC.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00019] in /Users/matt/Projects/PESPOC/PESPOC.iOS/AppDelegate.cs:30 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.12.0.4/src/Xamarin.iOS/UIKit/UIApplication.cs:79 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIApplication.cs:63 at PESPOC.iOS.Application.Main (System.String[] args) [0x00001] in /Users/matt/Projects/PESPOC/PESPOC.iOS/Main.cs:17