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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -