如何降级或安装较旧版本的Cocoapods

本文翻译自:How to downgrade or install an older version of Cocoapods

如何将Cocoapods降级到旧版本,或者如何安装旧版本的Cocoapods?


#1楼

参考:https://stackoom.com/question/1NxpB/如何降级或安装较旧版本的Cocoapods


#2楼

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: 您可以通过以下命令安装特定版本的可可豆荚:

sudo gem install cocoapods -v 0.25.0

You can use older installed versions with following command: 您可以使用以下命令使用旧版本:

pod _0.25.0_ setup

#3楼

Note that your pod specs will remain, and are located at ~/.cocoapods/ . 请注意,您的pod规范将保留,并位于〜/ .cocoapods /。 This directory may also need to be removed if you want a completely fresh install. 如果您想要全新安装,也可能需要删除此目录。

They can be removed using pod spec remove SPEC_NAME then pod setup 可以使用pod spec remove SPEC_NAME然后pod spec remove SPEC_NAME pod setup

It may help to do pod spec remove master then pod setup 它可能有助于pod spec remove master然后pod setup


#4楼

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

pod _0.37.2_ setup

#5楼

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

pod _0.25.0_ install

#6楼

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值