XCode project complains about missing files if a linked framework contains private headers
- by darklight
My Problem is this:
My framework contains public and private headers - the public headers import private headers in the framework
My app that links against this framework imports public headers
Now when I compile it, XCode complains about missing files (the private headers that are indirectly imported via the frameworks public headers). I read somewhere on stackoverflow that I should do this:
"In the public header file use @class to include other interfaces and use #import in the implementation file (.m)."
I find this solution pretty unsatisfying - you have to use it for circular dependencies, too. Is there any better way to keep my headers private?