I'm building a static library that will be used in multiple iOS apps. In parallel i'm working on one of those apps using my library.
During development I get at least once a day an annoying error about header files from the library not being found (in my app project).
I learned that when building a static library, headers can be either Public
, Private
or Project
I'm guessing that every header that I want to expose in my library should be Public
.
My question is, what is the best way to manage these public headers? should I create one main public header file with #import
to all my public headers?
Can Xcode generate such file for me?
Another major question is what is the recommended value for Public Header Folder Path
setting?
My major goal is that future projects that will use this library, will be able to do so with as less configurations as possible (Adding linker flags, changing User Header Search Path
etc.)
Thank you very much.