ios - Preprocessor Directives to separate targets in xcode -
i have 2 targets on project 1 production , 1 stage different configurations. want in code able say
#if target == production nslog(@"production"); #elif target == stage nslog(@"stage"); #endif
can please tell me how can that?
thank you,
~sonic555gr
you can define preprocessor macros each target, this...
and can this:
#ifdef production //some code #elif stage //some other code #else //more code^^ #endif
but carefull if need in debug- and/or in release-build, have declare there.
Comments
Post a Comment