When Running Pod Install I Get the 'Master' Repo Requires Cocoapods 0.32.1, Try Updating But Still in 0.31

when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31

To update cocoapods just do

sudo gem install cocoapods

and then you should be at the correct version

Cocoapods - 'pod --version' gives me 0.31.1 after updating to 0.32.1

Update: HAD TO RESTART TERMINAL after sudo gem uninstall cocoapods

Then sudo gem install cocoapods updates to the latest version successfully.

Cocoapods - 'pod --version' gives me 0.31.1 after updating to 0.32.1

Update: HAD TO RESTART TERMINAL after sudo gem uninstall cocoapods

Then sudo gem install cocoapods updates to the latest version successfully.

Unable to install pods using a legacy Cocoapods version

As iHulk states in his comment:

Use source "https://github.com/CocoaPods/Old-Specs" at top of your pod file

The version of CocoaPods used to generate the lockfile (1.5.3) is higher than the version of the current executable (1.5.2)

The error you are getting is due to your podfile.lock being built with an older version of Cocoapods. All you need to do is to delete your podfile.lock file and run pod install. This will create a new podfile.lock, with your current dependencies. Note that it should not take too long because your files should already be downloaded, they just need to be linked in said file.

Updating Pod is not Working

Finally I found solution from satoshi-iwaki.

This error occurs because

GitHub invalidated vulnerable SSL / TSL on 2018/23.

1. Install (or update) Homebrew.

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

$ brew update

2. Install (or update) OpenSSL.

$ brew install openssl

$ brew upgrade openssl

In the log at the time of installation openssl because the path of the output, in the street PATH wo .bash_profileso as to set in.

If you need to have this software first in your PATH run:

echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

$ source ~/.bash_profile

3. Check the version.

$ which openssl

/usr/local/opt/openssl/bin/openssl

$ openssl version

OpenSSL 1.0.2n 7 Dec 2017

4. Make sure you can access with TLSv 1.2.

$ openssl s_client -connect api.github.com:443

gives log like this.
Sample Image

5.Installing Ruby

Since I want to install Ruby separately from Ruby on the system, I install it so that it can be switched rbenv.

$ brew install rbenv ruby-build 

$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile

$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile

$ source ~/.bash_profile

6.Check the version of Ruby to install.

$ rbenv install --list

gives list of Available versions.

Install Ruby.

$ rbenv install 2.1.0

Switch the version.

$ rbenv global 2.1.0

7. Install CocoaPods.

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

If you want to check pods version

$ pod --version

Confirm that pod update ends normally.

$ pod update



Related Topics



Leave a reply



Submit