CI for iOS with Fastlane
Build, lint, and test a Fastlane iOS application.
Use template →- Languages
- Ruby
- Use cases
- Continuous integration, Mobile application
- Platforms
- iOS
- Tools
- Fastlane
CI for iOS with Fastlane
This template gives you a continuous integration (CI) pipeline that runs an iOS project using fastlane.
At a glance:
- For iOS projects
- Uses fastlane
How it works
This template:
- Installs dependencies using bundler.
- Runs fastlane lanes:
- Adds any test failures as annotations using junit-annotate-buildkite-plugin.
After the depedencies are installed, the lint, test, and build steps all run in parallel. After the build step has completed, the beta
step runs on beta
and beta/*
branches.
Note, depending on your version of Xcode you may need to install xcbeautify
, which is the recommended xcodebuild
formatter.
Next steps
After you select Use template, you’ll:
- Connect the Git repository for your iOS project.
- Check the commands match the lanes in your
Fastfile
(see the example). - Configure the compute—run locally, on-premises, or in the cloud.
- Install fastlane on your compute agents.
- Set up your Fastfile with the following actions:
- Run the pipeline.
You can then play around with the pipeline settings. For example, run the pipeline locally while you iterate on the definition or set a schedule to trigger a nightly build.
If you need help, please check our documentation, raise an issue, or reach out to support.