When coding in Xcode and using the #ifdef, perhaps from using multiple targets preprocessor macros you might run into this error:
Unterminated Conditional Directive
This is due to a missing ending. It needs to be balanced with an #endif. Just like the #if statement needs an #endif.
So to solve the error the if statement needs to look similar to this:
#ifdef //code #endif