Yes. If you select your project in the left pane, then select the project under the project in the inner left pane and select “Information” in the upper upper pane, you will see the “Configurations” section. Here you can configure.
Then select the target in the inner left pane and select "Configure Options" in the inner top pane. Find "preproc" in the search box. In the Apple LLVM - Preprocessing section, you can add your own preprocessor macros. For your configurations, define something like "DEV = 1", etc.
Now in your code you can say #if DEV , etc.
Many projects use AFNetworking to talk to their rear end. You can set baseURL for your subclass AFHTTPSessionManager or something else, based on the definitions.
source share