There are several ways to achieve functionality, although I only know what works with circuits.
The first option goes beyond the scope of the scheme and works with target macros of the preprocessor - for development, DEBUG is set to 1 and produces, DEBUG is set to 0. You can add as many macros as you want - to do this, go to your goals "Build Settings" and find "Macros preprocessor "is almost everything.
To work with schemes, you need to add an environment variable to your scheme:
Edit Schema -> Add Environment Variable.
To access the environment variable that you will need to execute:
[[[NSProcessInfo processInfo] environment] objectForKey:@"myKey"]
source share