Integrate Fastlane to iOS project: Lesson 1

Set up and Installation

Mark
2 min readAug 29, 2018

Before working with Fastlane, it needs to complete the following installation.

Install Ruby Version Manager (RVM)

Fastlane is written by Ruby, it is suggested to install Ruby Version Manager (RVM) to help you to manage the ruby path, value and configuration issues. The installation guide refers to RVM installation guideline.

Install mpapis public key

gpg — keyserver hkp://keys.gnupg.net — recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

Install stable RVM with Ruby

\curl -sSL https://get.rvm.io | bash -s stable --ruby

Install Xcode

Open your App Store app in Mac, search Xcode and download. If you want to download other version, please check beta version or older versions.

Install Xcode Command Line Tools

Xcode command line tools helps you to do command line developer for Xcode.

Install Xcode command line tools

xcode-select -install

Install Fastlane

Install Fastlane by gem

[sudo] gem install fastlane -NV

Check Fastlane is installed or not

which fastlane

If Fastlane is successfully installed, it will show an installed path in your Terminal.

Resolve UTF-8 Issue

Fastlane requires a correct environment in order to delivery to build. Do the following steps to resolve the UTF-8 issue.

cd ~/.
open .

click Shift + command + . to show all hidden folder (you can use this to show/hidden hidden folder in Mac). Open file called .bash_profile, copy and paste the following code into the file.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

What’s Next?

Next lesson, we will start to integrate Fastlane in your iOS project.

--

--