code-8
code-8

Reputation: 58760

How to Update Version Pod Packages?

This what I have now in my Pod file

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

I want to update to this

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

What is the command I need to run when I need to update my Pod package ?

pod update or pod install or both ?

Upvotes: 2

Views: 5811

Answers (1)

Kerberos
Kerberos

Reputation: 4166

Use pod install to install new pods in your project and pod update [PODNAME] (without the name if you want to update all the pods to the latest version) only when you want to update pods to a newer version.

More information in this cocoapods guide.

Upvotes: 9

Related Questions