Add the following to your Podfile
:
pod 'Natrium'
or for Objective-c:
pod 'Natrium/Objc'
Run pod install
or pod update
Create .natrium.yml
in the root of your project (in the same folder as the .xcproject and .xcworkspace files).
Check the configuration parameters here.
Add Natrium.swift
from the Pods/Natrium/Natrium
folder to your project's targets.
Create a Pre-Action per scheme which runs the following script:
"${PROJECT_DIR}/Pods/Natrium/Natrium/natrium" Production
The final argument "Production"
is the actual environment you want to use for that specific scheme.
This way you can create different schemes per environment
Provide build settings from...
selectbox