我只是尝试运行非常简单的Podfile,如下所示
pod 'AFNetworking', '~> 2.0'
pod 'ObjectiveSugar', '~> 0.5'
但它会得到跟随错误
[!] 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>'
但我已重新安装并双重确认(卸载cocoapods并重新安装)以确保。
gem list --local | grep cocoapods
cocoapods (0.33.1)
cocoapods-core (0.33.1)
cocoapods-downloader (0.6.1)
cocoapods-plugins (0.2.0)
cocoapods-trunk (0.1.3)
cocoapods-try (0.3.0)
当我第二次以here运行时,是否有任何想法或建议的完整详细错误日志?
答案 0 :(得分:7)
运行pod repo update
如果不能运行rm -rf ~/.cocoapods
和pod setup