如何检查可可豆框架的版本

时间:2022-06-30 20:32:29

I have updated Flurry via CocoaPods, but how can I check if Flurry was updated?

我已经通过可可豆更新了Flurry,但是我怎么检查Flurry是否更新了呢?

I mean the terminal shown me that everything is ok:

我的意思是终端告诉我一切都很好:

Installing FlurrySDK (4.2.3)
Generating Pods project
Integrating client project

but I am not sure that it has been updated.

但我不确定它是否已经更新。

8 个解决方案

#1


160  

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.

Podfile。lock跟踪每个Pod的解析版本。如果您想要再次检查FlurrySDK是否使用了4.2.3,请检查该文件。

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

注意:您不应该编辑这个文件。当您运行pod安装或pod更新时,它将自动生成

#2


87  

To check version of cocopods from terminal:

从终端检查cocopods版本:

For Sudoless:

Sudoless:

gem which cocoapods

For Sudo:

Sudo:

sudo gem which cocoapods

#3


77  

pod outdated

When you run pod outdated, CocoaPods will list all pods that have newer versions that the ones listed in the Podfile.lock (the versions currently installed for each pod) and that could be updated (as long as it matches the restrictions like pod 'MyPod', '~>x.y' set in your Podfile)

当你运行过时的pod时,CocoaPods会列出所有具有新版本的pod。锁定(当前为每个pod安装的版本),并可以进行更新(只要它匹配pod 'MyPod'、'~>x等限制。在你的播客里)

#4


59  

pod --version

豆荚,版本

to get the version of installed pod

获得安装的pod的版本。

#5


5  

I wrote a small commandline tool that parses the Podfile.lock and shows which version of each Pod is currently installed. It will also check for the latest version online and give you a summary of dependencies which are out-of-date.

我编写了一个小命令行工具来解析Podfile。锁定并显示当前每个Pod的版本。它还将检查最新的在线版本,并提供过期依赖项的摘要。

You can find it on Github: https://github.com/citruz/podchecker

您可以在Github上找到它:https://github.com/citruz/podchecker。

#6


1  

The highest voted answer (MishieMoo) is correct but it doesn't explain how to open Podfile.lock. Everytime I tried I kept getting:

最高的投票回答(MishieMoo)是正确的,但它没有解释如何打开Podfile.lock。每次我试着去做,我总是得到:

如何检查可可豆框架的版本

You open it in terminal by going to the folder it's in and running:

你在终端打开它,进入它所在的文件夹并运行:

vim Podfile.lock

I got the answer from here: how to open Podfile.lock

我从这里得到了答案:如何打开Podfile.lock。

You close it by pressing the colon and typing quit then enter

按下冒号,输入quit(退出),然后输入enter(退出)

:quit //then return key

#7


0  

You can figure out version of Cocoapods by using below command :

您可以通过以下命令来确定可可豆的版本:

pod —-version

o/p : 1.2.1

o / p:1.2.1

Now if you want detailed version of Gems and Cocoapods then use below command :

现在,如果你想要宝石和可可粉的详细版本,请使用以下命令:

gem which cococpods (without sudo)

果粒的宝石(不含sudo)

o/p : /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods.rb

o / p:/图书馆/ Ruby /珠宝/ 2.0.0 /珠宝/ cocoapods-1.2.1 / lib / cocoapods.rb

sudo gem which cocoapods (with sudo)

做茧的sudo gem(与sudo)

o/p : /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods.rb

o / p:/图书馆/ Ruby /珠宝/ 2.0.0 /珠宝/ cocoapods-1.2.1 / lib / cocoapods.rb

如何检查可可豆框架的版本

Now if you want to get specific version of Pod present in Podfile then simply use command pod install in terminal. This will show list of pod being used in project along with version.

现在,如果您想要获得在Podfile中出现的特定版本的Pod,那么只需在终端中使用命令Pod。这将显示在项目中使用的pod列表以及版本。

如何检查可可豆框架的版本

#8


-2  

pod --version used this to check the version of the last installed pod

pod——这个版本用来检查最后安装的pod的版本。

#1


160  

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.

Podfile。lock跟踪每个Pod的解析版本。如果您想要再次检查FlurrySDK是否使用了4.2.3,请检查该文件。

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

注意:您不应该编辑这个文件。当您运行pod安装或pod更新时,它将自动生成

#2


87  

To check version of cocopods from terminal:

从终端检查cocopods版本:

For Sudoless:

Sudoless:

gem which cocoapods

For Sudo:

Sudo:

sudo gem which cocoapods

#3


77  

pod outdated

When you run pod outdated, CocoaPods will list all pods that have newer versions that the ones listed in the Podfile.lock (the versions currently installed for each pod) and that could be updated (as long as it matches the restrictions like pod 'MyPod', '~>x.y' set in your Podfile)

当你运行过时的pod时,CocoaPods会列出所有具有新版本的pod。锁定(当前为每个pod安装的版本),并可以进行更新(只要它匹配pod 'MyPod'、'~>x等限制。在你的播客里)

#4


59  

pod --version

豆荚,版本

to get the version of installed pod

获得安装的pod的版本。

#5


5  

I wrote a small commandline tool that parses the Podfile.lock and shows which version of each Pod is currently installed. It will also check for the latest version online and give you a summary of dependencies which are out-of-date.

我编写了一个小命令行工具来解析Podfile。锁定并显示当前每个Pod的版本。它还将检查最新的在线版本,并提供过期依赖项的摘要。

You can find it on Github: https://github.com/citruz/podchecker

您可以在Github上找到它:https://github.com/citruz/podchecker。

#6


1  

The highest voted answer (MishieMoo) is correct but it doesn't explain how to open Podfile.lock. Everytime I tried I kept getting:

最高的投票回答(MishieMoo)是正确的,但它没有解释如何打开Podfile.lock。每次我试着去做,我总是得到:

如何检查可可豆框架的版本

You open it in terminal by going to the folder it's in and running:

你在终端打开它,进入它所在的文件夹并运行:

vim Podfile.lock

I got the answer from here: how to open Podfile.lock

我从这里得到了答案:如何打开Podfile.lock。

You close it by pressing the colon and typing quit then enter

按下冒号,输入quit(退出),然后输入enter(退出)

:quit //then return key

#7


0  

You can figure out version of Cocoapods by using below command :

您可以通过以下命令来确定可可豆的版本:

pod —-version

o/p : 1.2.1

o / p:1.2.1

Now if you want detailed version of Gems and Cocoapods then use below command :

现在,如果你想要宝石和可可粉的详细版本,请使用以下命令:

gem which cococpods (without sudo)

果粒的宝石(不含sudo)

o/p : /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods.rb

o / p:/图书馆/ Ruby /珠宝/ 2.0.0 /珠宝/ cocoapods-1.2.1 / lib / cocoapods.rb

sudo gem which cocoapods (with sudo)

做茧的sudo gem(与sudo)

o/p : /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.1/lib/cocoapods.rb

o / p:/图书馆/ Ruby /珠宝/ 2.0.0 /珠宝/ cocoapods-1.2.1 / lib / cocoapods.rb

如何检查可可豆框架的版本

Now if you want to get specific version of Pod present in Podfile then simply use command pod install in terminal. This will show list of pod being used in project along with version.

现在,如果您想要获得在Podfile中出现的特定版本的Pod,那么只需在终端中使用命令Pod。这将显示在项目中使用的pod列表以及版本。

如何检查可可豆框架的版本

#8


-2  

pod --version used this to check the version of the last installed pod

pod——这个版本用来检查最后安装的pod的版本。