I want to set the Debug flag in Compile Sources. But I'm not sure what the right way is. I don't want to compile some files when I'm building for release.
Other Swift Flags screenShot:
Compile Sources screenShot:
I want to set the Debug flag in Compile Sources. But I'm not sure what the right way is. I don't want to compile some files when I'm building for release.
Other Swift Flags screenShot:
Compile Sources screenShot:
You need to set "Other Swift Flags" in your target's Build Settings to -D DEBUG
so you can use the "#if/#else/#endif" preprocessor macros.