首页 > 解决方案 > 如何更新版本 Pod 包?

问题描述

这就是我现在在我的 Pod 文件中的内容

platform :ios, '9.0'
use_frameworks!
target 'ListHue' do 
  pod 'RealmSwift'
  pod 'SwipeCellKit'
  pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
end

我想更新到这个

platform :ios, '9.0'
use_frameworks!
target 'ListHue' do 
  pod 'RealmSwift'
  pod 'SwipeCellKit','2.5.0'
  pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
end

当我需要更新我的 Pod 包时,我需要运行什么命令?

pod updatepod install两者兼而有之?

标签: iosxcodecocoapods

解决方案


用于pod install在您的项目中安装新的 pod 并且pod update [PODNAME](如果要将所有 pod 更新到最新版本,则不使用名称)仅当您要将 pod 更新到较新版本时。

cocoapods 指南中的更多信息。


推荐阅读