Skip to content

VLC Plugin Unity Don't Work in IOS (Ipad Pro 2024) M4.

The VLC plugin works correctly in the Unity Editor on PC, but fails when building and running on iOS. Below are the issues encountered:

  1. Error in Unity Editor (PC): DllNotFoundException: @rpath/VLCUnityPlugin.framework/VLCUnityPlugin assembly: type: member:(null) This error occurs when testing VLC within the Unity Editor on PC.

  2. Error in iOS Build (runtime log): When running the build on iOS, I encountered the following log: main libvlc warning: cannot read plugins.dat Configuration Uncertainty:

  3. Initially, I encountered a .framework: no such file or directory error during the Xcode build. To resolve this, I removed Assets/Plugins/iOS from the Unity build, manually added the .framework files into Xcode's Frameworks folder, and ensured the "Embed & Sign" option was set. The Xcode build succeeded, but the VLC plugin does not work in the application. I suspect there might be additional configurations or steps that I missed.

  4. Streaming Setup: I am using RTSP streams from HKVISION cameras for streaming purposes. ////// Development Environment: Unity Editor: PC Build Process: Code and build the Unity project on PC. Copy the generated Xcode project to an iMac for building and deploying to an iPad using Xcode. Target Device: iPad Skill Level: Limited experience with iOS development. Questions: Are there specific configurations I missed to make the VLC plugin work on iOS? Do I need to adjust the plugin’s handling of .framework files, such as paths or permissions, to ensure compatibility on iOS? Is the plugins.dat file required for the VLC plugin to function, and if so, where should it be placed? Does the VLC plugin fully support RTSP streams from HKVISION cameras on iOS? Additional Notes: My project is quite large (heavy models and assets), which restricts me to using PC for development. The build is then transferred to Mac for final deployment. I am unfamiliar with detailed iOS configurations and rely on community guidance for resolving these issues. Looking forward to any assistance or advice on resolving these issues. Thank you!

Edited by Nguyễn Khang