In my code, I want to conditionally perform several operations with:
#ifdef DEBUG
NSLog(@"I'm in debug mode");
#endif
I configured Project-> Edit Project Settings-> Build tab so that "DEBUG" is specified as a user parameter with a value of 1. Debug is selected in the "Configuration" drop-down list. This still does not include the Debug build directive, although I thought it would.
What else do I need to do at the build stage to resolve this?
source
share