Skip to content

MobileVLCKit iOS framework is missing Module Map

I am working on a swift conversion of the Flutter plugin for VLC. ( Link )

I initially thought I ran into a Flutter issue. When you import VLCKit as a pod dependency into a swift project, it is unable to import the library ( #import MobileVLCKit -> not found)

I opened a issue on the Flutter Github. A developer responded https://github.com/flutter/flutter/issues/54574#issuecomment-613736013

This isn't really a Flutter problem specifically, it's a Swift <-> Objective-C interop problem. Swift pods can declare Objective-C dependencies that correctly implement clang modules, which MobileVLCKit doesn't (as you know since you already tried to build one yourself):

MobileVLCKit.framework

drwxr-xr-x  16 m  primarygroup         512 Apr 14 13:33 Headers
-rwxr-xr-x   1 m  primarygroup  1715586784 Apr 14 13:33 MobileVLCKit

So the "right" thing for them to do is to add a modulemap in their framework. Which I realize doesn't help you at the moment.

Edited by Jean-Baptiste Kempf
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information