-
Notifications
You must be signed in to change notification settings - Fork 18
CodeMagic
team-nimblehq edited this page Apr 16, 2026
·
5 revisions
Use the CodeMagic template to start a new project with CodeMagic as the CI/CD tool.
The template sets each workflow to Ruby 3.2 so Bundler can install the current Fastlane and Firebase App Distribution plugin toolchain.
Out of the box, the CodeMagic Template has the following workflows and steps:
| test | deploy_app_store | deploy_staging_firebase | deploy_release_firebase |
|---|---|---|---|
| Install bundle | Install bundle | Install bundle | Install bundle |
| Resolve SPM dependencies | Resolve SPM dependencies | Resolve SPM dependencies | Resolve SPM dependencies |
| Fastlane - Build and Test | Fastlane - Build and Test | Fastlane - Build and Test | Fastlane - Build and Test |
| Fastlane - Clean Up Xcov | Fastlane Match | Fastlane Match | Fastlane Match |
| Fastlane - Build and deploy | Fastlane - Build and Upload Production App to App Store | Fastlane - Build and Upload Staging App to Firebase | Fastlane: Build and Upload Production App to Firebase |
| Danger | N/A | N/A | N/A |
| Workflow | Trigger |
|---|---|
| test | Create or Update a PR |
| deploy_staging | Push branch develop
|
| deploy_release_firebase | Push branch release/*
|
| deploy_app_store | Push branch main
|
| Key | Description |
|---|---|
| MATCH_PASSWORD | The password is used to encrypt/decrypt the Match repository to store the distribution certificates and provisioning profiles. |
| MATCH_SSH_KEY | The SSH private key is used for cloning the Match repository that contains your distribution certificates and provisioning. |
| KEYCHAIN_PASSWORD | The password to access the keychain. |
| FIREBASE_SERVICE_ACCOUNT | Google Service Firebase Account for uploading build to Firebase Distributions and Analytics. |
| APPSTORE_CONNECT_API_KEY |
App Store Connect API for uploading build to TestFlight or App Store. It should be base64 encoded. |
| API_KEY_ID | The key identifier of your App Store Connect API key. |
| ISSUER_ID | The issuer of your App Store Connect API key. |
| BUMP_APP_STORE_BUILD_NUMBER | The boolean flag to determine if the Fastlane should bump the app store build number. |
| GITHUB_TOKEN | The token of GitHub to run Danger. |
The Fastlane build lanes use Codemagic's project-level build counter (PROJECT_BUILD_NUMBER) when setting the app build number.
-
Follow the setup instruction in
README.md. -
To connect the repository to CodeMagic, please follow the instruction on Adding the app to CodeMagic.
-
Provide all the required variables and secrets.
The final project directory structure should be like this:
ROOT
├── ExampleApp.xcodeproj
├── codemagic.yaml
├──...
- Push changes to SCM.
This project is maintained and funded by Nimble.