Get installed CocoaPods version

孤街浪徒 提交于 2019-12-13 01:40:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!