After upgrading to Mac OS Sierra, I ran into a problem installing cocoapods.
Every time I run sudo gem install cocoapods --preeverything that is well installed, but when I try to install pod, the terminal stack is setting up the main CocoaPods repository. Already updated the system with help sudo gem update --systemand still got the same problem, searching the Internet, to find old answers to use pod install --verbose Ss. I found the answer in this answer again, to install it manually.
NOTE. I have the latest version of Command Line Tools. Any suggestion or how to install a master repo manually?
Even if an empty folder (that is, without an element name in it) is installed, it gives
/Library/Ruby/Site/2.0.0/rubygems/dependency.rbhaps15:in `to_specs': Could not find 'cocoapods' (> = 0) among 66 total gem (s) (Gem :: LoadError)
Checked in 'GEM_PATH = / Users / my_name / .gem / ruby / 2.0.0: /Library/Ruby/Gems/2.0.0: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby /gems/2.0.0 ', execute `gem env` for more information
from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:324:in `to_spec '
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:64:in `gem '
from / usr / local / bin / pod: 22: in ``
source
share