I am working on a dynamic framework (Cocoa Touch Framework) that should use VideoKit lib as a kernel. The library is an .a file with several header files (about 20) and examples of ViewControllers in ObjC (you can grab the demo SDK from: Link ). In the future, my platform will provide the player with a widget written in Swift (based on sources from ObjC and some other specific functions) before DemoApp. But at the moment, I cannot correctly handle the dependency in my dynamic structure.
My first approach was to add an SDK to the Framework project. I followed the manufacturer's instructions, but instead of adding the SDK to the App project, I added it to the Dynamic Framework project. There was no module map file and Umbrella header for the VideoKit library, so I created them. As a result, some errors went away (related to the headers in the module). I also deleted the controller source files from compiled sources, because I do not need them - I just wanted to start the kernel first. I was stuck on errors saying that for different architectures there are no characters (x86, arm64).
My second approach was based on what I read on SO and other resources. I moved the dependency to the application project. In the settings of the Build Dynamic Framework, I added the paths to the headers and libraries from the VideoKit SDK, which are now stored in the App Project. Again, I was stuck with errors of "Undefined characters for architecture".
I would be grateful if someone could direct me to what I am doing wrong, this is my first time when I need to create a framework with a dependency on a static library and not use the Dependency Managers to solve it - this is actually my first time on the construction of the iOS Framework.
Here is a link to the repo with my actual work on this issue: Repo
I had to remove the VideoKit SDK from the project due to license restrictions. You need to download it and add it manually.