In C/C++/Objective C you can define a macro using compiler preprocessors. Moreover, you can include/exclude some parts of code using compiler preprocessors.
![In Xcode 8 & above go to build setting -> search for custom flags ]1
In code
#if Live print("Live") #else print("debug") #endif