Fastlane installation
2018-09-13 本文已影响23人
想养只土狗
Command line:
sudo gem install fastlane
- 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
- 再次尝试:
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!