Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm trying to revert to a previous version of a specific pod, but cant easily find a command for listing all versions I can revert to. Let's say I have:

pod 'AFNetworking', '~> 2.3.0' 

How can I learn what versions of a specific cocoapod (ex: AFNetworking) I can install? I want to see if it has 2.3.1, 2.3.5, 2.4.1, etc.

PS. Google is overflowing with questions about how to check for the version of cocoapods itself, but I'm asking about version history of specific pods avaialable through that framework.

like image 879
Alex Stone Avatar asked Jul 21 '16 14:07

Alex Stone


People also ask

How do I install specific version of Pod?

To install the latest pod version, omit the version number after pod name. To install specific pod version, specify pod version after pod name. Besides no version, or a specific one, it is also possible to use logical operators: '> 0.1' Any version higher than 0.1.

How do you update a specific POD file?

When you run pod update SomePodName , CocoaPods will try to find an updated version of the pod SomePodName, without taking into account the version listed in Podfile. lock . It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile).

What is Podspec in CocoaPods?

A specification describes a version of Pod library. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description. A stub specification file can be generated by the pod spec create command.


1 Answers

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.

like image 173
Bhumit Mehta Avatar answered Sep 20 '22 13:09

Bhumit Mehta