Error when install Cocoapods

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Error when install Cocoapods



I am trying to install CocoaPods on my Mac. When i run this command:



sudo gem install cocoapods


sudo gem install cocoapods



it returns this:


Fetching: cocoapods-core-1.5.3.gem (100%)
Successfully installed cocoapods-core-1.5.3

ERROR: Error installing cocoapods: invalid gem: package metadata is missing in /Library/Ruby/Gems/2.3.0/cache/cocoapods-deintegrate-1.0.2.gem



What is casing this issue and how do I install CocoaPods?





I have exactly same problem
– Mahdi Bashirpour
Aug 12 at 10:17




1 Answer
1



I'd recommend using Homebrew to install CocoaPods.



If you are not already using Homebrew, it is a package manager for macOS, hugely popular among developers of all types. It makes installing packages like CocoaPods hassle free.



To install Homebrew, follow the instructions on the homepage



Paste that at a Terminal prompt.


/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



Homebrew requires Xcode Command Line Tools to be installed and setup (which I am assuming you already have as you are trying to install CocoaPods, implying you are developing for iOS).



Once Homebrew is setup, simply run:



brew install cocoapods


brew install cocoapods



to install CocoaPods.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard