I have a static library project that builds .h and .m files and places them into ${DERIVED_FILES_DIR}. This works fine. However, I can't figure out how to reference them when the library project is added as a sub-project.
When I add this project as a sub-project it builds and output is placed into the parent project path at Build/Intermediates/SubProj.build/Debug-iphonesimulator/SubProj.build/DerivedSources.
How can I tell xcode to use these Intermediates in the containing project?
Alternatively, how can I modify the subproject to copy these to the Products Directory where perhaps they will get picked up by the parent project?
I solved this by adding a Run Script build phase in the library project that copies the derived files using this script:
Then, when adding this library to another project I add a User Header Search Path under Build Settings as
Be sure to select recursive.