You could use preprocessor instructions like #if
in Swift, but I think you need to define the target variables yourself. I use it as follows:
Build Settings → Fast Compiler Symbols → Other Quick Flags Set a variable -D LITE
in your Lite-target configuration
In your code, you can use it as follows:
#if LITE
#else
#endif