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!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容