# 1. Install the Fastlane

  • Check Ruby version 2.0 or later, and change the gem source to gems.ruby-china.org/, enter the following command in terminal.

// Check the Ruby version

Ruby -v // Check the source gem sources of the gem

  • To check whether Xcode command line tool is installed, enter the following command in terminal, if installed, will be prompted, if not installed, will automatically start installation.

xcode-select –install

  • To start installing Fastlane, enter the following command on your terminal

sudo gem install fastlane –verbose

  • If the installation fails, use the following command to install.

sudo gem install -n /usr/local/bin fastlane

After the installation is complete, you can run the following command to view the version to verify the installation.

fastlane –version

#2. Install dandelion’s Fastlane plugin

fastlane add_plugin pgyer

Note: Plug-ins can be installed separately for projects

  • If Successfully installed plugins are displayed, the installation is complete.
  • After installation, Gemfile and gemfile. lock will be generated in the root directory of the system. Do not delete these two files, or the plug-in will have to be reinstalled.

Note: You can install the Fastlane plugin in the project directory after configuring the project without installing the dandelion plugin

fastlane init

$bundle Update freezes ruby monitoring

➜ ~ gem source-l

*** CURRENT SOURCES ***

// My version has been replaced with gems. Ruby-china.com/ if not

gem sources –add gems.ruby-china.com/ –remove rubygems.org/

Close the terminal open the project folder, locate the Gemfile file generated during fastlane Init, and open it

Replace rubygems.org with https://ruby.taoba… Or gems.ruby-china.com/

source “rubygems.org” source “ruby.taobao.org”

Note: Check whether the ruby from the terminal is replaced with their own

CD to project directory

Fastlane init

#4. Configure the file Appfile in fastlane

app_identifier “com.kingdom.ruifukejicrm”

apple_id “” team_id “”

fastlane

default_platform(:ios)

Platform :ios do desc “Description of what the lane does”# Description lane :tests do “dsd”, * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Pgyer (api_key: “fd80a246b9e9d4ce621a8d7e4670cfa5,” user_key: “c2d154d36c6c81e5d383399eb620e984”) # key end end of dandelion

Wrap up and upload to dandelion

More just see fastlane series anthology note: quote aspirant knowledge, seriously think common commands