如何更新Pod软件包版本?

时间:2018-09-27 19:39:42

标签: ios xcode cocoapods 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或两者兼而有之?

1 个答案:

答案 0 :(得分:2)

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

this cocoapods指南中的更多信息。

相关问题