Fastlane installation

Command line:
sudo gem install fastlane

  1. Error:
ERROR:  Could not find a valid gem 'fastlane' (>= 0), here is why:
          Unable to download data from https://gems.ruby-china.org/ - bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

Solution - 修改 source:
gem sources -r https://gems.ruby-china.org/
gem sources -a https://gems.ruby-china.com

  1. 再次尝试:sudo gem install fastlane 遇到新问题...
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

修改command为:
sudo gem install fastlane -n /usr/local/bin

Succeeded!

你可能感兴趣的:(Fastlane installation)