CarlJ
CarlJ

Reputation: 9481

Get the "Active Configuration"

is there an way to get the "Active Configuration" (Debug / Release) with ObjC or the iOS SDK ?

Upvotes: 0

Views: 109

Answers (1)

Athiwat Chunlakhan
Athiwat Chunlakhan

Reputation: 7809

Easy way

bool isDebug = NO;
#ifdef DEBUG
 isDebug = YES;  
#endif

What do you mean by getting it? This example will set the variable at compile time which can be use to check if it's a debug build or not in the program.

Upvotes: 2

Related Questions