If you have a preprocessor macro, you need to give it a value in order to be able to use it just like you do, see a screenshot of one of my project settings as a sample:

, DEBUG, #if #ifdef.
#if , , #ifdef, . , , , .
UPDATE:
, , config=Debug . , .
2 xcconfig, :
Release.xcconfig:
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) FOORELEASE=1
Debug.xcconfig
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) FOODEBUG=1
. James Moores : xcconfig?