objective c - Preprocessor target checking -
i want use preprocessor commands test target i'm compiling for. every example read told :
add preprocessor macro in target.
do :
#ifdef target_name_macro nslog(@"target_name"); #else nslog(@"another_target"); #endif
however, isn't working. condition passes whenever in target_name's file never passes when doing in target's file. need test in target's file if i'm running in test mode.
i've tried few things, none worked out.
any ideas?