据我所知,以下命令将更新单个 Pod:pod update <podname>
。但是,这还会更新您之前安装的其他 pod(未包含在更新命令中的 pod)的依赖项。有没有办法更新单个 Pod 并保留所有其他依赖项?
最佳答案
确保您安装了最新版本的 CocoaPods。
$ pod update PODNAME
最近推出。
参见this issue thread for more information :
$ 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).If you run pod update without any pod name, CocoaPods will update every pod listed in your Podfile to the latest version possible.
关于cocoa - 如何在不触及其他依赖项的情况下更新单个 Pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26351086/