This post helps you to create CI/CD pipeline for an iOS application using Gitlab CI and fastlane tool.
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner
sudo chmod +x /usr/local/bin/gitlab-runner
- bundle install
- bundle exec fastlane beta
Fastlane primarily here serves the following purposes, namely:
sudo gem install
# Alternatively using Homebrew
# brew cask install fastlane
platform :ios do
desc "Build the application"
lane :beta do
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD and FASTLANE_SESSION
In order to authenticate against the App Store for the TestFlight upload, fastlane must be able to authenticate. In order to do this, you need to create an app-specific password to be used by CI. You can read more about this process in this documentation.
FASTLANE_SESSIONvariable – instructions are in the same place.