Use pod search there are mistakes
MacBook-Pro: ~ CC $ pod search jsonkit
-bash: / usr / local / bin / POD: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: Bad interpreter: No such file or directory
this is a Mac upgrade system results when your Mac system upgrade to high siera time, do not forget to update cocoapods.
Execute the command:
$ sudo GEM Update --system
$ sudo install GEM CocoaPods -n / usr / local / bin
Mirroring access anomaly
Error fetching https://gems.ruby-china.org/: bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)
https://gems.ruby-china.org/ not visit
the domain name change
https://gems.ruby-china.com/
so ruby-china provides mirroring Alternatively, correct operation is:
$ sudo gem update --system
$ gem sources --remove https://rubygems.org/
GEM Sources --remove $ https://ruby.taobao.org/ // image if installed Taobao
// After the reactions have re-typing the following command
gem sources -a https://gems.ruby-china.com/
In order to verify your Ruby and mirroring is only a ruby-china, can be viewed using the following command:
$ gem sources -l
*** CURRENT SOURCES ***