Reputation: 9481
is there an way to get the "Active Configuration" (Debug / Release) with ObjC or the iOS SDK ?
Upvotes: 0
Views: 109
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