Thanks dbolli - yes I understand.
In my template, the COCOS2D_DEBUG is showing up in the Target build settings as
a GCC_PREPROCESSOR_DEFINITIONS flag, not CFLAGS. I have tried renaming it here, and
also removing it completely from Build settings, but the build still prints debug output.
This is in the stock template for 0.8.1 using XCode 3.1.4 on 10.5.8
The only way I have found to stop debug output, is to search the source for COCOS2D_DEBUG
and rename it there. The definition is found in ccMacros.h. I do not fully understand this, but it appears if COCOS2D_DEBUG is not defined (eg: renamed, removed from build settings) then it should do "CCLOG(...) do {} while (0)" which I presume is equivalent
to do nothing. But it doesn't seem to work in my case.
Changging the definition here to #ifdef __COCOS2D_DEBUG stops debug logging.
#ifdef COCOS2D_DEBUG
//#define CCLOG(s, …) NSLog((@”%s %s:%d ” s), __func__, basename(__FILE__), __LINE__, ## __VA_ARGS__);
#define CCLOG(...) NSLog(__VA_ARGS__)
#else
#define CCLOG(...) do {} while (0)
#endif