I've written some code that can be compiled differently depending using
#if ***
...
#else
...
#endif
I then set up two different project targets. In one target under Swift Compiler - Custom Flags / Active Compilation Conditions, I define ***. In the other, I don't.
Using the two project targets, I can compile the program two different ways.
However, if I introduce an error into a section of code that is going to be ignored, XCode reports an error and won't compile.
Does the compiler truly ignore code that is in a failed #if block or does the code end up in the compiled code with a runtime check to not run?