In my workspace I have a project that builds a static library. That project declares public header files and in the project we declare the Public Headers Folder Path as "include/TheLibrary".
In the main application project, I am usually able to include public headers related to the static library as:
#include <TheLibrary/HeaderFile.h>
I include a header file this way from my applications Swift bridging header. The application builds and runs without trouble.
However, when I Archive the project - either from Xcode, or from the command line using xcodebuild
the archive command fails while precompiling the Swift Bridging Header stating that the <TheLibrary/HeaderFile.h>
cannot be found.
This only happens when Archiving. Building and testing work.
Why is Xcode unable to find my static library project's public headers when archiving?