Updating to Latest Version of Cocoapods

Updating to latest version of CocoaPods?

Execute the following on your terminal to get the latest stable version:

sudo gem install cocoapods

Add --pre to get the latest pre release:

sudo gem install cocoapods --pre

If you originally installed the cocoapods gem using sudo, you should use that command again.

Later on, when you're actively using CocoaPods by installing pods, you will be notified when new versions become available with a CocoaPods X.X.X is now available, please update message.

How to update cocoapod version using brew

You can't do much with homebrew.

Homebrew allows installing v1.10.1 only

In my case fix this issue by updating ruby to 2.7 to install cocoapods v1.10.0.

rvm install ruby-2.7

Note: Use the specific version of ruby as per your macOS compatibility

iOS : How to get updated version of cocoapods in swift

1: Run this command in terminal to update pod repo in your system

pod repo update

2: Then run

pod deintegrate
pod clean
pod install

Cocoapods not updating even after latest version is installed

Use which pod to figure out where it's installed. Most likely it's through brew, so you need to do a brew upgrade to get the latest version. Generally it's best to install all Ruby tools through the same method: directly, through brew, or using a Ruby manager like rvm.

How to update cocoapods for flutter on Mac without getting an error?

You could try:

brew install cocoapods

How to upgrade the cocoapod with the specified version?

Use this command.

sudo gem install cocoapods -v 1.4.0.beta.2

You can check if the version you want is in the sources by using this command.

gem search cocoapods --pre

iOS - cocoapods not updating

For now, I am doing rm -rf Pods and then pod install.

That fixes the issue.

pod update doesn't update to latest version

Removing and reinstalling of cocoapods solved the problem:

MACMINI:myproject myusername$ sudo rm -fr ~/.cocoapods/repos/master
Password:
MACMINI:myproject myusername$ pod setup
Setting up CocoaPods master repo
Setup completed
MACMINI:myproject myusername$ cd ~/myproject/
MACMINI:myproject myusername$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing AFNetworking 2.6.3 (was 2.5.4)
Installing Bolts 1.5.0 (was 1.2.0)
Using Countly (15.06.01)
Installing FBSDKCoreKit 4.8.0 (was 4.4.0)
Installing FBSDKLoginKit 4.8.0 (was 4.4.0)
Installing FBSDKShareKit 4.8.0 (was 4.4.0)
Installing GoogleMaps 1.10.5 (was 1.10.1)
Using MONActivityIndicatorView (0.0.3)
Using MagicalRecord (2.3.0)
Using NYXImagesKit (2.3)
Generating Pods project
Integrating client project
Sending stats
Sending stats
Pod installation complete! There are 9 dependencies from the Podfile and 10 total pods installed.

pod update will not update to latest version of pod no matter what I do

Updating the CDN can be laggy. To workaround and directly load from the GitHub repo, add source 'https://github.com/CocoaPods/Specs.git' to the Podfile.

Note that it will be much slower.

UPDATE: The root cause looks to be fixed now. See https://github.com/CocoaPods/CocoaPods/issues/9826



Related Topics



Leave a reply



Submit