skip to Main Content

Not working below commands on MacBook Terminal:

gem install cocoapods,
gem install cocoapods-art

Getting bellow error message:

ERROR: Could not find a valid gem ‘cocoapods’ (>= 0) in any repository

I have tried many solutions which are available on Google/Stackoverflow but not worked.

Thanks in advance.

2

Answers


  1. There can be different reasons for this.

    1. Make sure you have Xcode installed on the system (its components too, Which it asks us to install on installation)
    2. It can happen due to some network issues.try disabling IPv6, your can also try with a VPN connected and not connected both. ( you can also try this software, connect it and try:https://developers.cloudflare.com/warp-client/get-started/macos , it works for me on several network related issues on M1 chip macbook)
    3. Try this command:
      gem install cocoapods –source http://rubygems.org
    Login or Signup to reply.
  2. If you have satisfied other conditions and you wish to install the latest version of cocoapods, you may wish to install using homebrew.

    To do that, you can install with this command on your terminal;

    brew install cocoapods
    

    You will be required to link cocoapods after installing – to link, use;

    brew link --overwrite cocoapods
    

    Hope it works for you…

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search