如何更新单个pod而不触及其他依赖关系 [英] How to update a single pod without touching other dependencies
问题描述
我了解以下命令将更新单个窗格: pod update< podname>
。但是,这还会更新先前安装的其他pod(未包含在update命令中的pod)的依赖关系。有没有办法更新一个pod并单独保留所有其他依赖项?
I understand that the following command will update a single pod: pod update <podname>
. However this also updates the dependencies of other pods (pods that were not included in the update command) that you have previously installed. Is there a way to update a single pod and leave all other dependencies alone?
推荐答案
确保您有最新版本的CocoaPods安装。 最近推出了$ pod update POD
。
Make sure you have the latest version of CocoaPods installed. $ pod update POD
was introduced recently.
请参阅此问题线程的更多信息:
$ pod update
当您运行
pod update SomePodName
时,CocoaPods将尝试找到pod SomePodName的更新版本,帐户Podfile.lock
中列出的版本。它将更新pod到最新的版本可能(只要它符合您的Podfile中的版本限制)。
$ pod update
When you run
pod update SomePodName
, CocoaPods will try to find an updated version of the pod SomePodName, without taking into account the version listed inPodfile.lock
. It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile).
如果运行pod更新没有任何pod名称,CocoaPods会将您Podfile中列出的每个pod更新为最新版本。
If you run pod update without any pod name, CocoaPods will update every pod listed in your Podfile to the latest version possible.
这篇关于如何更新单个pod而不触及其他依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!