Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating to latest version of CocoaPods?

I'm having some issues installing Alamofire 4.0 into my project.

I've got the latest version of Xcode, running Swift 3, and when I try to install alamofire I'm getting like 800 compiler errors.

Apparently

CocoaPods 1.1.0+ is required to build Alamofire 4.0.0+

[!] some_cocoapod requires CocoaPods version >= X.Y.Z, which is not satisfied by your current version, Z.Y.X.

I looked at the version of CocoaPods I have in terminal and it says I'm at 1.0.1.

Running an update didn't work I guess because CocoaPods 1.1 is in beta.

So I'm not exactly sure how to update it up to where I'm good to go. Unless being out of date doesn't force like 800 compiler errors? Does that sound like some other issue?

like image 994
Barkley Avatar asked Sep 14 '16 02:09

Barkley


People also ask

What is the latest version of CocoaPods?

1.11. 2 - September 13, 2021 (287 KB)


2 Answers

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.

like image 82
Sampath D Avatar answered Sep 21 '22 05:09

Sampath D


Open the Terminal -> copy below command

sudo gem install cocoapods 

It will install the latest stable version of cocoapods.

after that, you need to update pod using below command

pod setup 

You can check pod version using below command

pod --version 
like image 39
Dheeraj D Avatar answered Sep 20 '22 05:09

Dheeraj D