For example, we have two environments: CI - Staging and want to add some customizations for each environment. Here I will try to customize server URL, app name.

First, we create two targets for 2 environments by duplicating the main target:

http://i.stack.imgur.com/724av.png

For each target, we will define a custom macro. Here I will define macro named “CI” in build settings of target CI, macro named “STAGING” for target Staging.

The development target (MultipleEnvironment target):

http://i.stack.imgur.com/U42W4.jpg

Target CI:

http://i.stack.imgur.com/UewwM.jpg

Target Staging:

http://i.stack.imgur.com/yyvPz.jpg

Create scheme for each target:

http://i.stack.imgur.com/k1uFR.png

We will create a header file to define SERVER URL as below:

http://i.stack.imgur.com/FYQyz.png

It means,

If you want to do more customize, for example: Change app name for each target:

http://i.stack.imgur.com/WbNfj.jpg