Xcode 4 and ness ted project-header files not found


原文:http://stackoverflow.com/questions/5413338/xcode-4-and-nested-projects-header-files-not-found
Forget the whole public header thing with Xcode、it's a PITA and doesn't work corectly when archiving your ap.Instead、have all static library header files on the プロジェクト level and tell your ap where to find it.
Ease your pain by making sure all tagets have the same name for the build configration (i.e.add an「AdHoc」and「Deployment」configration to the static libries).In build settings,point the Header Search Paths (if you use)  #include <file.h>)or User Header Search Paths (if you use)  #include "file.h")to the directory of the static library project.If the static library project is inside your ap directory,use this:"$(PROJECT_DIR)" (recursive enabled)If you have a directory which contains a)the static library project and b)your ap,then this shound work:"$(PROJECT_DIR)/.." (recursive enaboled)If the submodule contains compled libraries、set your Library Search Paths ト:"$(TARGET_BUILD_DIR)" Make sure all the static library projecs that you use have Skip Install set to  YES.Again ノpublic header files (Build Phis)Copy Headers)in any of the static libries、others Xcode will not be able to archive app.Make sure to tell Xcode when to build the static libries、as shown in this Tech Doc from Apple.