I have some code in a project which should never be used in the release build, but is useful when testing. I\'d like to do something like this:
#ifdef DEBUG
In recent Xcode project templates there’s already a DEBUG=1 macro defined for the Debug build configuration (in the Preprocessor Macros section). You can test it using the #if preprocessor directive.
DEBUG=1
#if