How to Check Version of a Cocoapods Framework

How to check version of a CocoaPods framework

The Podfile.lock keeps track of the resolved versions of each Pod installed. If you want to double check that FlurrySDK is using 4.2.3, check that file.

Note: You should not edit this file. It is auto-generated when you run pod install or pod update

How to find out the version of installed cocoa pods?

EDIT

Based on your clarification you're looking for pod outdated. You can see more information about this with pod outdated --help

Original answer before question was edited

The command you want is pod --version

In the future you should use pod --help to find answers such as this. You can also use pod COMMAND --help to get help for specific commands.

How do I check cocoapods version?

$pod --version

Gives you the version. found it on this guide here:

https://www.cocoanetics.com/2013/11/updating-cocoapods/

How to check Alamofire library version?

Open Podfile.lock in textedit. You will find the version of Alamofire and other used third parties' version.

Snapshot of one of my pod file.lock:-

PODS:

  - AFNetworking (2.6.3):
- AFNetworking/NSURLConnection (= 2.6.3)
- AFNetworking/NSURLSession (= 2.6.3)
- AFNetworking/Reachability (= 2.6.3)
- AFNetworking/Security (= 2.6.3)
- AFNetworking/Serialization (= 2.6.3)
- AFNetworking/UIKit (= 2.6.3)
- AFNetworking/NSURLConnection (2.6.3):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/NSURLSession (2.6.3):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/Reachability (2.6.3)
- AFNetworking/Security (2.6.3)

SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
COCOAPODS: 0.38.2

CocoaPods get current dependency versions

The only way to update the currently installed versions of your pods is by running pod update. If you don't do this all the current version information is stored in the Podfile.lock and will make sure the versions are the same between installs.

This file is also the best place to look for these versions if you want to add them. In your Podfile.lock you'll see a list like this:

PODS:
- EasyMapping (0.6.3)
- Expecta (0.3.1)
- OCMock (3.1.1)
- OHHTTPStubs (3.1.6):
- OHHTTPStubs/Core
- OHHTTPStubs/Core (3.1.6)
- Specta (0.2.1)

The top level (left most) entries are the pods you have specified in your Podfile. As you can see to the right is the currently installed version. You can grab the versions from here and put them in your Podfile.

iOS CocoaPods - how to find out available versions of a specific pod, not cocoapods itself?

pod search afnetworking

Using above command brings up all info related to that pod (If exists)

Following is the output you get when you fire above command

AFNetworking (3.1.0) A delightful iOS and OS X networking
framework. pod 'AFNetworking', '~> 3.1.0'
- Homepage: https://github.com/AFNetworking/AFNetworking
- Source: https://github.com/AFNetworking/AFNetworking.git
- Versions: 3.1.0, 3.0.4, 3.0.3, 3.0.2, 3.0.1, 3.0.0, 3.0.0-beta.3,
3.0.0-beta.2, 3.0.0-beta.1, 2.6.3, 2.6.2, 2.6.1, 2.6.0, 2.5.4, 2.5.3, 2.5.2,
2.5.1, 2.5.0, 2.4.1, 2.4.0, 2.3.1, 2.3.0, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0,
2.1.0, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 2.0.0-RC3, 2.0.0-RC2, 2.0.0-RC1, 1.3.4,
1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.1, 1.2.0, 1.1.0, 1.0.1, 1.0, 1.0RC3, 1.0RC2,
1.0RC1, 0.10.1, 0.10.0, 0.9.2, 0.9.1, 0.9.0, 0.7.0, 0.5.1 [master repo]
- Subspecs:
- AFNetworking/Serialization (3.1.0)
- AFNetworking/Security (3.1.0)
- AFNetworking/Reachability (3.1.0)
- AFNetworking/NSURLSession (3.1.0)
- AFNetworking/UIKit (3.1.0)

It has other info as well but you do get version info.

List installed cocoapods and versions

EDIT: As stated in @DougAmos' answer you should check your Podfile.lock to see this information using cat Podfile.lock

This doesn't currently exist in CocoaPods. Personally I would just do a cat Podfile to learn about what the project was including. I would suggest you create an issue (or even better a pull request) on the main repository about this!

Get installed CocoaPods version

Just posting this for people to see in the future, but you can simply check the version by running the following command:

$ pod --version



Related Topics



Leave a reply



Submit