如何在不接触其他依赖的情况下安装特定的Pod [英] How to install specific pod without touching other dependencies

查看:99
本文介绍了如何在不接触其他依赖的情况下安装特定的Pod的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用cocoapods安装特定的依赖项.如果我执行pod install,则在安装新添加的依赖项之前会更新其他依赖项.我只想安装特定的Pod,而不接触其他任何Pod.而且我知道deletingupdating任何依赖关系也会更新其他依赖关系.有什么办法可以解决这个问题?

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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