Answers for "how to reinstall cocoapods in mac"

7

update cocoapods version mac

##CocoaPods manages library dependencies for your Xcode projects.
#install the latest stable version of cocoapods
$ sudo gem install cocoapods
#Update pod 
$ pod setup
#pod version
$ pod --version
#### Or ####
$ pod repo update
Posted by: Guest on September-28-2021
6

install cocoapods

$ sudo gem install cocoapods
Posted by: Guest on April-27-2020
0

install cocoapods mac

Install cocoapods with gem not with Homebrew
sudo gem install cocoapods
but first find stable version of gem and ruby

if already installed then update gem

gem update --system
Install Ruby via RVM
1. Install RVM as per instructions

or

curl -L https://get.rvm.io | bash -s -- --version latest
then

source ~/.rvm/scripts/rvm
type rvm | head -n 1
If the output is:

rvm is a function
You may need to add "source ~/.rvm/scripts/rvm" to your ~/.bash_profile file

2. Install Ruby

rvm install (ruby version)
rvm --default use (ruby version)
eg:

rvm install 2.7.2
can use rvm list to see available ruby versions.

check location of ruby

which -a ruby
which ruby
Posted by: Guest on February-03-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language