How to use custom flags, build configurations and schemes to control environment variables in your project, as shown in this article - https://williamboles.com/unleashing-build-settings-on-your-swift-project/.
wibosco/UnleashingBuildSettings-Example
How to use build configuration to control environment variables
SwiftMIT