Thursday, 15 September 2011

xcode - Passing preprocessor defines from an XCode5 project to its contained sub-projects -



xcode - Passing preprocessor defines from an XCode5 project to its contained sub-projects -

i have xcode5 project (a) dependent on xcode5 project (b). project b contained sub-project in project a. project b needs passed preprocessor define project a, seems impossible task. design, preprocessor defines not passed 1 parent xcode project sub-projects. i've tried setting environment variable in xcode scheme , picking 1 in project b, didn't work either. i've no thought how this, although i've passed whole morning on already...

important side note: don't want alter anything in project b, because it's project used many parent projects, , changes (i.e. preprocessor defines) should made in parent projects, never in project b.

edit: simple possibility have "config.h" header file preprocessor defines in project a, , project b include file. without adding directory of file header include directories of project b, don't know how tell xcode find file (again: never want makes changes project b).

xcode xcode5 preprocessor

No comments:

Post a Comment