Swift: how to use PREPROCESSOR Flags (like `#if DEBUG`) to implement API keys?

Apple included full support for Swift preprocessor flags as of Xcode 8, so it’s no longer necessary to set these values in “Other Swift Flags”. The new setting is called “Active Compilation Conditions”, which provides top-level support for the Swift equivalent of preprocessor flags. You use it in exactly the same way as you would … Read more