First you can figure out which version of Cocoapods you are on with the command:
| 
1 | pod --version | 
You can also see all the version of Cocoapods you have installed with this command:
| 
1 | sudo gem list cocoapods | 
Next uninstall Cocoapods. If you have multiple version, you will have the choice of uninstalling all or a specific version.
| 
1 | sudo gem uninstall cocoapods | 
Finally you can install the specific version with this command:
| 
1 | sudo gem install cocoapods -v 0.39.0 | 
 
Or try the below to see:
ReplyDeletegem list --local | grep cocoapods