问题描述
我想使用cocoapods
安装特定的依赖项.如果我执行pod install
,则在安装新添加的依赖项之前会更新其他依赖项.我只想安装特定的Pod,而不接触其他任何Pod.而且我知道deleting
,updating
任何依赖关系也会更新其他依赖关系.有什么办法可以解决这个问题?
I want to install specific dependency using cocoapods
. if I execute pod install
, other dependencies are getting updated before installing my newly added dependency. I just want to install specific pod without touching any others. And I know deleting
, updating
any dependency also updates others. Is there any way to solve this problem?
实际上,我的问题是我自己修改某些依赖项(例如, AFNetworking )并运行pod install
它恢复为原始版本.但是我不想丢失我的更改.
Actually my problem is when I myself modify some dependency (AFNetworking for example) and run pod install
it reverts back to its original version. But I don't want to lose my changes.
推荐答案
要在安装前跳过正在运行的pod repo更新.请使用
To Skip running pod repo update before install.Use
pod install --no-repo-update
这篇关于如何在不接触其他依赖的情况下安装特定的Pod的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!