问题
How do I get the version of CocoaPods I have installed on my Mac?
I could run sudo gem install cocoapods
but, I want to get the installed version without reinstalling CocoaPods.
回答1:
Just posting this for people to see in the future, but you can simply check the version by running the following command:
$ pod --version
回答2:
Integrity Check
There is more to Cocoapod
version than the pod gem:
Pods
pod --version #Show the version of the tool
gem list --local | grep pods #Show the version of all related tools
Ruby To ensure compatibility across development environments, you may want to look at
ruby --version #Print the version of Ruby
gem --version #Print version of RubyGems, package manager for Ruby
Xcode Finally, to get the proper Xcode tools across development environments, also look at:
xcode-select --version #Print the version of xcode-select
xcode-select -p #Print the path of the active developer directory
gem list --local | grep xcode #Print xcodeproj version (a tool also used by pods)
回答3:
For full detail Use : $ gem which cocoapods
It will give <Folder Version> & <Location>
来源:https://stackoverflow.com/questions/24982671/get-installed-cocoapods-version