Install Cocoapods In Mac Os Catalina

Brew install cocoapods. Dependency manager for Cocoa projects. Installation support provided for macOS releases: Intel: big sur:: catalina. 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.

First, check the version of Ruby you are using.
2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
Catalina
usr/bin/ruby
Now use Homebrew to install the latest Ruby.

Install Cocoa Pods In Mac Os Catalina Download

> 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

How To Install Cocoapods In Mac

$ 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.

Install Cocoa Pods In Mac Os Catalina Update

$ ruby -vruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
/usr/local/opt/ruby/bin/ruby
You're good to go! Make sure you install by specifying the save destination as follows.
$ sudo gem install -n /usr/local/bin cocoapods

<What is CocoaPods

CocoaPods manages library dependencies for your Xcode projects.

How To Update Cocoapods In Mac

The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.

Ultimately the goal is to improve discoverability of, and engagement in, third party open-source libraries by creating a more centralised ecosystem.

<Prefer video?

Google have created a great overview for Route 85 video series going through this entire guide and more.

<Getting Started

<Installation

CocoaPods is built with Ruby and it will be installable with the default Rubyavailable on macOS. You can use a Ruby Version manager, however we recommend thatyou use the standard Ruby available on macOS unless you know what you're doing.

Using the default Ruby install will require you to use sudo when installinggems. (This is only an issue for the duration of the gem installation, though.)