Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I have basically the same question as this post:
when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31
but the answer doesn't help me (I'm not allowed to comment on things yet haha!)
I try to run 'pod install' or 'pod setup' and I get an error saying:
[!] The `master` repo requires CocoaPods 0.32.1 -
Update CocoaPods, or checkout the appropriate tag in the repo.
/Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:274:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/lib/cocoapods/command.rb:51:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/bin/pod:33:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
Then I run 'sudo gem install cocoapods' and I get:
CHANGELOG:
## 0.32.1
##### Bug Fixes
* Fixed the Podfile `default_subspec` attribute in nested subspecs.
[Fabio Pelosin][irrationalfab]
[#2050](https://github.com/CocoaPods/CocoaPods/issues/2050)
Successfully installed cocoapods-0.32.1
Parsing documentation for cocoapods-0.32.1
Done installing documentation for cocoapods after 1 seconds
1 gem installed
Even after this, I run 'pod --version' and I still get 0.31.1. Is there another step I need to take to successfully update to 0.32.1?
–
–
–
–
–
–
For me, the problem is caused by two versions of cocoapods have been installed.
I uninstalled cocoapods first by running sudo gem uninstall cocoapods
.
And then run pod --version
command to check the existence of cocoapods again.
Wierd thing happened! The gem is there.
So I uninstalled cocoapods for the second time.
My conclusion is to make sure you delete all cocoapods completely, and reinstall it. It works for me.
- sudo gem uninstall cocoapods
- Restart the Terminal ( on your Mac)
- sudo gem install cocoapods --source http://rubygems.org
also , better copy paste, easy to do a typo with Cocoapods :-)
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.