如何降级或安装旧版本的茧蜂

时间:2022-07-11 07:03:29

How can I downgrade Cocoapods to an older version, or how can I install an older version of Cocoapods?

我如何将可可豆降级为旧版本,或者如何安装旧版本的可可豆?

5 个解决方案

#1


477  

to remove your current version you could just run:

要删除当前版本,您可以运行:

sudo gem uninstall cocoapods

you can install a specific version of cocoa pods via the following command:

您可以通过以下命令安装特定版本的cocoa pods:

sudo gem install cocoapods -v 0.25.0

You can use older installed versions with following command:

您可以使用较老的已安装版本,使用以下命令:

pod _0.25.0_ setup

#2


84  

Actually, you don't need to downgrade – if you need to use older version in some projects, just specify the version that you need to use after pod command.

实际上,您不需要降级——如果您需要在某些项目中使用旧版本,只需指定需要在pod命令之后使用的版本。

pod _0.37.2_ setup

#3


23  

If you need to install an older version (for example 0.25):

如果您需要安装旧版本(例如0.25):

pod _0.25.0_ install

#4


14  

PROMPT> gem uninstall cocoapods

Select gem to uninstall:
 1. cocoapods-0.32.1
 2. cocoapods-0.33.1
 3. cocoapods-0.36.0.beta.2
 4. cocoapods-0.38.2
 5. cocoapods-0.39.0
 6. cocoapods-1.0.0
 7. All versions
> 6
Successfully uninstalled cocoapods-1.0.0
PROMPT> gem install cocoapods -v 0.39.0
Successfully installed cocoapods-0.39.0
Parsing documentation for cocoapods-0.39.0
Done installing documentation for cocoapods after 1 seconds
1 gem installed
PROMPT> pod --version
0.39.0
PROMPT>

#5


2  

Note that your pod specs will remain, and are located at ~/.cocoapods/ . This directory may also need to be removed if you want a completely fresh install.

请注意,您的pod规格将保留,并位于~/。cocoapods /。如果您想要一个全新的安装,也可能需要删除这个目录。

They can be removed using pod spec remove SPEC_NAME then pod setup

可以使用pod spec删除SPEC_NAME,然后使用pod设置删除它们

It may help to do pod spec remove master then pod setup

这可能有助于做吊舱规格除去主吊舱然后吊舱设置

#1


477  

to remove your current version you could just run:

要删除当前版本,您可以运行:

sudo gem uninstall cocoapods

you can install a specific version of cocoa pods via the following command:

您可以通过以下命令安装特定版本的cocoa pods:

sudo gem install cocoapods -v 0.25.0

You can use older installed versions with following command:

您可以使用较老的已安装版本,使用以下命令:

pod _0.25.0_ setup

#2


84  

Actually, you don't need to downgrade – if you need to use older version in some projects, just specify the version that you need to use after pod command.

实际上,您不需要降级——如果您需要在某些项目中使用旧版本,只需指定需要在pod命令之后使用的版本。

pod _0.37.2_ setup

#3


23  

If you need to install an older version (for example 0.25):

如果您需要安装旧版本(例如0.25):

pod _0.25.0_ install

#4


14  

PROMPT> gem uninstall cocoapods

Select gem to uninstall:
 1. cocoapods-0.32.1
 2. cocoapods-0.33.1
 3. cocoapods-0.36.0.beta.2
 4. cocoapods-0.38.2
 5. cocoapods-0.39.0
 6. cocoapods-1.0.0
 7. All versions
> 6
Successfully uninstalled cocoapods-1.0.0
PROMPT> gem install cocoapods -v 0.39.0
Successfully installed cocoapods-0.39.0
Parsing documentation for cocoapods-0.39.0
Done installing documentation for cocoapods after 1 seconds
1 gem installed
PROMPT> pod --version
0.39.0
PROMPT>

#5


2  

Note that your pod specs will remain, and are located at ~/.cocoapods/ . This directory may also need to be removed if you want a completely fresh install.

请注意,您的pod规格将保留,并位于~/。cocoapods /。如果您想要一个全新的安装,也可能需要删除这个目录。

They can be removed using pod spec remove SPEC_NAME then pod setup

可以使用pod spec删除SPEC_NAME,然后使用pod设置删除它们

It may help to do pod spec remove master then pod setup

这可能有助于做吊舱规格除去主吊舱然后吊舱设置