'sudo gem install cocoapods' doesn't work on El Capitan 10.11.4 , ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository

后端 未结 2 1680
太阳男子
太阳男子 2021-02-20 16:19

Upgrading from Yosemite to El Capitan seem to have wiped out the already installed CocoaPods. When I pod install Alamofire/SwiftyJson, it says \'Pod command not found\'

2条回答
  •  情书的邮戳
    2021-02-20 16:37

    I faced the same problem and it was fixed by using the following command

    $ sudo gem install cocoapods --source http://rubygems.org
    

提交回复
热议问题