An array of the preprocessor in the parent project for use in the subproject

I have an Xcode project that has a subproject that is a static library. I defined the preprocessor macro in the parent project (in the build settings), and I want it to be recognized by the subproject at compile time (I have several #ifdef in the subproject). But the macro is always undefined in the subproject, no matter what I do. Can I do what I want?

+6
source share

All Articles