In a Swift project before I\'ve been able to perform a simple compiler check to see which scheme is running, then conditionally include code or not. For example:
<
Use #ifdef
#ifdef
//example for debug scheme #ifdef NDEBUG Add code here #endif
And you can define your preprocessor macros here
Hope this helps