Unterminated conditional directive in Xcode
An #ifdef
, like an #if
, needs to be balanced by an #endif
. In this case, that would probably go immediately after your #define
line.
Something like this:
#ifdef DEBUG NSLog (@"This is a test");#endif