sudo gem install fastlane
卡住然后出现下列错误
GET https://gems.ruby-china.com/api/v1/dependencies?gems=memoist,os
200 OK
ERROR: While executing gem ... (Gem::DependencyResolutionError)
conflicting dependencies faraday (~> 0.12) and faraday (~> 1.0)
Activated faraday-1.0.0
which does not match conflicting dependency (~> 0.12)
Conflicting dependency chains:
fastlane (= 2.176.0), 2.176.0 activated, depends on
faraday (~> 1.0), 1.0.0 activated
versus:
fastlane (= 2.176.0), 2.176.0 activated, depends on
google-api-client (>= 0.37.0, < 0.39.0), 0.37.0 activated, depends on
googleauth (~> 0.9), 0.9.0 activated, depends on
faraday (~> 0.12)
Gems matching faraday (~> 0.12):
faraday-0.17.3, faraday-0.15.4, faraday-0.15.0
解决方案
gem update慢就用下面的方法
sudo gem uninstall faraday
sudo gem uninstall google-api-client
sudo gem uninstall googleauth
sudo gem uninstall fastlane
sudo gem install fastlane -v 2.162.0
方案2
sudo gem update