icon

Swift Environment Variable Injector

Step to inject static values from environment variables into Swift code files before compilation and Continuous deployment allowing us to not expose our production keys and values in statically in our code and store sensitive values safe.

This step allows us to inject CI pipelines environment variables values into Swift code static values before compilation and Continuous deployment to a specific environment(Development, Testing or Production) where we can define the values injected for each build and deployment e.g. a API url that the App uses and is different for each environment. Also it allows us to not expose our production keys and values in statically in our code. For more info, check out the Swift Variable Injector Project on github.

Similar steps

Set environment variable

Utility to be able to differentiate your firebase projects by development environment

Runs Generate Xcode project on your macOS project with Swift Package Manager

Runs Build on your macOS project with Swift Package Manager