Setting Up fastlane

Install Homebrew

1
2
3
4
$ /usr/bin/ruby -e \
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update && brew install ruby
$ brew link --overwrite ruby

重新啟動 Terminal

1
2
3
4
5
6
$ sudo gem install bundler
$ xcode-select --install
$ sudo gem install -n /usr/local/bin fastlane --verbose
$ brew cask install fastlane
$ npx react-native init rndemo
$ cd rndemo/ios

add to .zshrc

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

Gemfile

1
2
3
source "https://rubygems.org"

gem "fastlane"
1
2
$ sudo gem install bundler
$ bundle exec fastlane init

screenshots

distribution to beta testing services

automate the App Store release process

setup code signing with fastlane

依據上述的 tutorial 就可以完成相對應的工作