意外地运行了pod更新,而不是pod安装。有什么办法可以还原吗? [英] Accidentally ran pod update instead of pod install. Is there any way to revert?

查看:43
本文介绍了意外地运行了pod更新,而不是pod安装。有什么办法可以还原吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心运行了 pod更新而不是 pod安装,现在我的项目中出现编译错误。 / p>

有没有简单的方法可以还原到我以前的豆荚?



我正在考虑对其进行破解-我的Podfile.lock文件受源代码控制,因此我可以从中获取版本号,然后将Podfile锁定为这些数字,例如:

  pod'AFNetworking','2.6.3'

但是有一个简单的命令吗例如 pod恢复 pod撤消之类的东西?



否则,我可能只会吸收它并更新我的项目代码以使其与新的pod兼容。

解决方案

如果使用git或其他版本控制系统,只需重置 Podfile.lock 中的更改,然后在终端中运行 $ pod install


I accidentally ran pod update instead of pod install, and now I have compile errors in my project.

Is there any easy way of reverting to my previous pods?

I'm thinking of hacking it -- I have my Podfile.lock file under source control, so I can grab the version numbers off that, then lock down the Podfile to those numbers e.g.:

pod 'AFNetworking', '2.6.3'

But is there a simple command like pod revert or pod undo or something?

Otherwise I'll probably just suck it up and update my project code to be compatible to the new pods.

解决方案

If you use git or other version control system, just reset changes in Podfile.lock and run $ pod install in terminal.

这篇关于意外地运行了pod更新,而不是pod安装。有什么办法可以还原吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆