我了解以下命令将更新单个pod:pod update< podname> ;.但是,这还会更新先前安装的其他pod(未包含在update命令中的pod)的依赖关系。有没有办法更新单个pod,单独留下所有其他依赖项?
确保您安装了最新版本的CocoaPods。 $ pod update POD最近被引入。
见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.