Macos Catalina Install Cocoapods

First, check the version of Ruby you are using.

PodsMacos

Open the disk image, then open the.pkg installer inside the disk image. It installs an app named Install Version Name. Open that app from your Applications folder to begin installing the operating system. MacOS Sierra 10.12 can upgrade El Capitan, Yosemite, Mavericks, Mountain Lion, or Lion. Welcome to Appychip Youtube channel!In this video, we will demonstrate you how to download and install 'cocoapods' on MacOS using brew on Terminal for free.T. In my mac mini I've running Catalina 10.15.7. I've also installed Xcode 12.4. Now as I'm using third party library I'm trying to install cocoapods in my mac. So I used this - sudo gem install cocoapods which I got from official website. But I'm getting this.

2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
usr/bin/ruby
Now use Homebrew to install the latest Ruby.
> rubyBy default, binaries installed by gem will be placed into:/usr/local/lib/ruby/gems/2.7.0/binYou may want to add this to your PATH.ruby is keg-only, which means it was not symlinked into /usr/local,because macOS already provides this software and installing another version inparallel can cause all kinds of trouble.
If you need to have ruby first in your PATH run:
$ echo 'export PATH='/usr/local/opt/ruby/bin:$PATH' >> /Users/xxx/.bash_profile
(For newer mac the file name will be : .zprofile )
For compilers to find ruby you may need to set:
$ export CPPFLAGS='-I/usr/local/opt/ruby/include'
Follow the instructions to set PATH. Now you will go to see the installed Ruby. Make sure to replace the 'xxx' with your username.
$ echo 'export PATH='/usr/local/opt/ruby/bin:$PATH' >> /Users/xxx/.bash_profile
$ echo 'export LDFLAGS='-L/usr/local/opt/ruby/lib' >> ~/.bash_profile
$ echo 'export CPPFLAGS='-I/usr/local/opt/ruby/include' >> ~/.bash_profile
$ source ~/.bash_profile
(For newer mac the file name will be : .zprofile )
Finally, Make sure your PATH is in place.
$ ruby -vruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
Macos catalina install cocoa pods free

Macos Catalina Install Pod

/usr/local/opt/ruby/bin/ruby
You're good to go! Make sure you install by specifying the save destination as follows.

Macos Catalina Install Cocoa Pods Free

$ sudo gem install -n /usr/local/bin cocoapods