'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 1698
太阳男子
太阳男子 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: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

提交回复
热议问题