I don’t believe that there is a built-in (gcc does not know what you build when compiling the file), but you can always create it using the GCC_PREPROCESSOR_DEFINITIONSxcconfig file (you are using xcconfig , right?) Something like this should work, how do you indicate above:
GCC_PREPROCESSOR_DEFINITIONS = __TARGET_NAME__=\"$(PRODUCT_NAME)\"
source
share