Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.01 KB

INSTALL_COCOAPODS.md

File metadata and controls

41 lines (26 loc) · 1.01 KB

Installation CocoaPods

Step 1

Add the following to your Podfile:

pod 'Natrium'

or for Objective-c:

pod 'Natrium/Objc'

Run pod install or pod update

Step 2

Create .natrium.yml in the root of your project (in the same folder as the .xcproject and .xcworkspace files).
Check the configuration parameters here.

Step 3

Add Natrium.swift from the Pods/Natrium/Natrium folder to your project's targets.
⚠️ Do NOT copy it, only make a reference to it.

Step 4

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

Schemes

⚠️ Warning: Don't forget to select your target in the Provide build settings from... selectbox