I have an Xcode5 (A) project that depends on another Xcode5 (B) project. Project B is contained as a subproject in project A. Project B needs to pass the definition of the preprocessor from project A, but this seems like an impossible task. By design, preprocessors are not passed from one parent Xcode project to their subprojects. I tried to set the environment variable in the Xcode scheme and select it in project B, but that didn't work either. I have no idea how to do this, although I already spent this morning already ...
Important note: I do not want to change anything in Project B, because the project that will be used by many parent projects, and changes (i.e. preprocessor definitions) should only be done in parent projects, but never in project B.
Edit: A very simple possibility is to have some header file “config.h” with some preprocessor defined in Project A, and Project B will include this file. But without much adding the directory of this file, Project B directories are included in the header, I don’t know how to tell Xcode to find this file (again: I never want to make changes to Project B).
preprocessor xcode xcode5
user3756504
source share