I am working on a project with multiple targets, I have a preprocessor macro in build settings:
PRODUCT_NAME=\@\"$PRODUCT_NAME\"
now in AppName-Prefix.pch I have defined the $PRODUCT_NAME as:
#define ACTIVE_PRODUCT PRODUCT_NAME
how can I check if ACTIVE_PRODUCT is equal to a string?
I want to do something like this e.g.
if ACTIVE_PRODUCT == @"Product 1"
#define MY_VAR @"Test 1
#endif
if ACTIVE_PRODUCT == @"Product 2"
#define MY_VAR @"Test 2
So I can use MY_VAR in my code depending on the $PRODUCT_NAME
Please assist! regards, Bill.