Multiple scheme For different environment - poloteh/iOSRoadmapTutorial GitHub Wiki
Create scheme for different environment
Each environment should have two mode
- Debug
- Release
To add a different scheme there are a few ways
- Add configurations and manage your scheme
- Add different targets
We will use the first method
Select project and in the info tab duplicate the configuration, select the configuration and duplicate.
Example:
Select the target and add a flag in active compilation conditions.
If the environment is Staging then add STAGING, this will use as PREPROCESSOR in code
Product Name and bundle Identifier
In build setting set your product name and bundle Identifier respectively
Example
AppName Dev(D)
****(D) means Debug Mode
AppName Stag
AppName