iOS Notes 12: How to update Pods?
Updated: April 16, 2020
Cocoapods are really easy to update. You should open your terminal and go to your project file with cd
command.
As the same as “pod install” command, we will write ;
pod update POD_NAME
the command to update your pods by name.
If you want to update ALL your pods at once;
pod update
and press enter :) It will automatically find if there is a newer version for your pods and update them all one by one.
Reference from cocoapods.org :
pod update
When you run
pod update PODNAME
, CocoaPods will try to find an updated version of the podPODNAME
, 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 yourPodfile
).If you run
pod update
with no pod name, CocoaPods will update every pod listed in yourPodfile
to the latest version possible.
If you have any question, ask me :)