Hi, just a suggestion.
Since cocoapods is coded by ruby, there maybe time in the future that you might need to update your ruby version and this gem may break. Also, i'm not a big fan fo sudo gem install _____. it's root and most of the time it's not necessary.
I would suggest you to install rvm first, follow this url. github.com/rvm/rvm
Once rvm is installed, restart terminal then install ruby (latest now is 2.7.2) rvm install 2.7.2
NOTE: you can install other versions as well.
You can now swap to use this ruby version using rvm use 2.7.2
to set this version as default run rvm use 2.7.2 --default
Once your are on 2.7.2 (try checking with ruby -v) you can now run gem install cocoapods
ps1: you don't need root permission to install cocoapods.
ps2: rvm will also install homebrew for you. you might find it useful later.
Hi! I'm a technology professional who works at a marketing firm. I like to document what I've found useful in the spheres of web analytics, web development, and e-commerce.
Hi, just a suggestion.
Since cocoapods is coded by ruby, there maybe time in the future that you might need to update your ruby version and this gem may break. Also, i'm not a big fan fo
sudo gem install _____
. it's root and most of the time it's not necessary.I would suggest you to install
rvm
first, follow this url.github.com/rvm/rvm
Once rvm is installed, restart terminal then install ruby (latest now is 2.7.2)
rvm install 2.7.2
NOTE: you can install other versions as well.
You can now swap to use this ruby version using
rvm use 2.7.2
to set this version as default run
rvm use 2.7.2 --default
Once your are on
2.7.2
(try checking withruby -v
) you can now rungem install cocoapods
ps1: you don't need root permission to install cocoapods.
ps2:
rvm
will also install homebrew for you. you might find it useful later.Thank you! I'll check it out