Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How do i update the version of cocoapods?


Asked by Aniya Stuart on Dec 01, 2021 FAQ



To update CocoaPods you simply install the gem again. $ [sudo] gem install cocoapods. Or for a pre-release version. $ [sudo] gem install cocoapods --pre. If you originally installed the cocoapods gem using sudo, you should use that command again.
Subsequently,
< pod update When you run pod update PODNAME, CocoaPods will try to find an updated version of the pod PODNAME, without taking into account the version listed in Podfile.lock. It will update the pod to the latest version possible (as long as it matches the version restrictions in your Podfile).
And, If you originally installed the cocoapods gem using sudo, you should use that command again. Later on, when you're actively using CocoaPods by installing pods, you will be notified when new versions become available with a CocoaPods X.X.X is now available, please update message.
Also Know,
When you run pod outdated, CocoaPods will list all pods which have newer versions than the ones listed in the Podfile.lock (the versions currently installed for each pod).
Moreover,
CocoaPods is a dependency manager which integrates dependencies into your Xcode workspace. To install it using RubyGems run: To install Updates using Cocoapods, simply add the following line to your Podfile: