Recently I created a iOS Framework called "MLKit Framework" that uses MLKit Face Detection library. In order to achieve that, I just imported the library in Podfile according to documentation.
As expected, that created a xcworkspace called MLKit Framework. In order to test that new framework, I created an app called MLKitApp and added that app to the same workspace. Then I added the framework MLKitFramework to that app and tried to build it but I get the error statement: "Missing required module 'MLKit'" as the image below.
Why Am I getting that error? What I'm doing wrong?
Reproducible Example
I created a Reproducible Example here. In order to execute that example execute the following:
- Execute pod install for MLKitFramework;
- Add MLKitApp to MLKitFramework.xcworkspace;
- Add MLKitFramework.framework as a MLKitApp Frameworks, Libraries and Embedded Content;
- Try to build MLKitApp.
And voilà