在未能正确安装Jekyll gem (网站开发)后,问题开始于pod install返回了本网站(when running pod install I get The master repo requires CocoaPods 0.32.1, try updating but still in 0.31和其他网站)上的其他问题中描述的臭名昭著的消息
[!] 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.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'即使我成功安装了0.32.1,运行pod ver也会返回0.29.0。
我注意到上面的消息指向0.29.0安装目录,它与当前的安装目录(/usr/local/lib/ruby/gems/2.1.0/gems)不匹配。
我已经运行了所有可能的gem命令迭代,但仍然无法掌握它(清理、卸载、安装等)。
gem检查返回以下内容:
xcodeproj-0.16.1.gem has 5 problems
ext/xcodeproj/Makefile:
Extra file
ext/xcodeproj/extconf.h:
Extra file
ext/xcodeproj/mkmf.log:
Extra file
ext/xcodeproj/xcodeproj_ext.bundle:
Extra file
ext/xcodeproj/xcodeproj_ext.o:
Extra file不知道这有没有关联。
删除/Library/Ruby/Gems/2.0.0/gems/目录会在任何pod命令上返回错误。
如果没有重新安装整个操作系统(!)--在新的卷上进行了测试,证明它解决了这个问题--就不能解决这个问题。
有什么指针吗?
发布于 2014-06-04 00:12:03
听起来您可能正在使用RVM并将gem安装到一个gem集中。如果是这种情况,那么您可以在系统上同时安装同一gem的多个版本。
如果您想要更新系统范围内的gem,请使用sudo,例如sudo gem install cocoapods。如果要更新RVM,请排除sudo,例如gem install cocoapods。
另外,如果您使用的是RVM,请确保您也没有以根用户身份运行pod install。
https://stackoverflow.com/questions/23297188
复制相似问题