It is a really quick & detailed solution.
Open Terminal and do the following to get the latest stable version:
sudo gem install cocoapods
Add --pre to get the latest preview release:
sudo gem install cocoapods
In case of error
Try uninstalling and reinstalling:
sudo gem uninstall cocoapods sudo gem install cocoapods
Run after CocoaPods update
sudo gem clean cocoapods
After updating CocoaPods, you also need to update the Podfile.lock file in your project.
Go to your project directory
pod install
Prakhar Prakash Bhardwaj Sep 16 '19 at 12:21 2019-09-16 12:21
source share