ios - 如何更新版本 Pod 包?

标签 ios xcode cocoapods

这是我的 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 或两者?

最佳答案

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

更多信息请参见 this cocoa 足指南。

关于ios - 如何更新版本 Pod 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52544029/

相关文章:

ios - 从 URL 加载时应如何处理视网膜/正常图像?

ios - 发生了什么让我的键盘变成了一个酒吧

ios - GVRSDK iOS Xcode 链接器错误

ios - 初始化时出现 Firebase 错误 'NSInvalidArgumentException'

iphone - 在 OS X 服务器上运行的数据库将与 iOS 上的核心数据很好地同步?

ios - 更新 RecyclerView 适配器中 Cardview 内的图表

ios - 根据 iOS 应用程序中的用户角色类型更改 UITabbarController 的 View Controller

swift - 项目 'Pods' - 打开整个模块优化

swift - 在框架模块 'SQLite.SQLite_Bridging' 中包含非模块化 header

iphone - 使 UIPopoverController 在外部触摸时不辞职?