开启全局代理;
brew install ruby
或者更新ruby,如果提示已存在,也可以重新装,或者更新。
below command will overwrite the previous version
brew link --overwrite ruby
close this terminal and open new terminal.check your version
ruby -v
check issue resolve or not
ruby -r digest/sha1 -e 'p Digest::SHA1'
如果提示:can‘t find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
sudo gem update –system (可以不执行)
gem install cocoapods