'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 1634
太阳男子
太阳男子 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
    
    0 讨论(0)
  • 2021-02-20 16:45

    I struggled with same issue 1 week, finally this works for me

    Disable IPv6 and try again with sudo gem install cocoapods --source http://rubygems.org

    Issues seems with network

    Few more details give on rugby gems forum - https://help.rubygems.org/discussions/problems/31074-timeout-error

    0 讨论(0)
提交回复
热议问题