排除Pod更新 [英] Exclude a pod from updating
本文介绍了排除Pod更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用可可豆。我对第3方库进行了一些更改,如果运行 pod update
,所有这些更改将被替换。运行 pod install
做同样的事情。
I use Cocoapods. I have made some changes to a 3rd party library and if I run pod update
, all those changes would get replaced. Running pod install
does the same thing.
是否有一种方法可以排除Pod?还是一种安装单个吊舱而不影响其他吊舱的方法?
Is there a way to exclude a pod from updating? Or a way to install a single pod without affecting others?
推荐答案
最后找到了解决方案。
如果您已经在项目中安装了库,它将安装pod而不进行任何存储库更新,否则将下载
It will install pod without any repository update if you already have the library in the project,else will download
pod install --no-repo-update
如果要更新特定的库,可以使用:
If you want to update specific libraries you can use :
pod update [POD_NAME...]
这篇关于排除Pod更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文