OpenCV keeps bundling into my iOS swift framework

asked 2019-08-16 07:32:18 -0500

Im have created a framework for iOS that uses openCV.

No matter what I have tried I cannot get my framework to compile without bundling in all the openCV stuff it needs.

I want to be able to compile my framework and supple it to someone else who would then have to go and add openCV to their app.

I have tried compiling the Dynamic framework and adding that to my project. I have tried adding openCV via a pod, and I have tried adding the Dynamic openCV via a pod (which I just cant get to install it crashes for 10000 different reasons, perhaps its unsupported now)

To check im not expecting too much, I made a framework lets call this FrameworkA, I then made a second Framework frameoworkB

I Added frameworkA to FrameworkB and made it B call a function in A. I Then added B to a project, and tried to call the function in B that called A and voila it broke saying I needed to import framework A to my app. this is the exact behaviour I want when making my framework that uses openCV

I am tearing my hair out trying to find a solution to this so if someone could point me in the right direction that would great because I thought that I had found the solution after compiling it with the dynamic flag turned on but unfortunately that hasn't worked either and its just bundled it into my framework again....

Thank you in advance

edit retag flag offensive close merge delete