My Xcode project "MyMainApp" has a Xcode sub-project of the static library called "MyLib". Now I need to use some third-party iOS framework in my iOS app. I want to add / link them only with MyLib and not MyMainApp so that I can use MyLib repeatedly and standalone to use it in other iOS apps. Several view controllers in MyMainApp use one of the view controllers, which is part of MyLib. This view controller in MyLib uses the functionality of classes that are inside a third-party structure. Now the problem I am facing is that if I add third-party frameworks only to MyLib and don’t add them to MyMainApp, I get a linker error "Lexical or preprocessor problem. XXX.h file not found. ”Everything works well if I add frameworks to MyMainApp and MyLib, but that’s not what I want. I made sure the search paths in the wireframe and the search paths for the headers are correct. In this scenario, I could not find the links on Apple. I would like to know what is the best way to add / link third-party structures and libraries with the Xcode subproject of a static type library. Is there also a solution to overcome the linker error and add frameworks only to the static library project?Also, is there a solution to overcome the linker error and add frameworks only to the static library project?Also, is there a solution to overcome the linker error and add frameworks only to the static library project?
source
share