Project-wide Preprocessor Macro Definitions


Is there a way to define project-wide preprocessor macros in AppCode?

I'd hate it if I had to #define DEBUG in each and every file of my project files while testing.

1 comment
Official comment


I'd recommend to do that in Xcode since AppCode build settings editor doesn't have such ability at the moment. You can setup Preprocessor macros (GCC_PREPROCESSOR_DEFINITIONS) via Build Settings for project / target:

Please sign in to leave a comment.