美文网首页iOS开发随笔
pod install报`to_specs': Coul

pod install报`to_specs': Coul

作者: 勗幻青山 | 来源:发表于2016-05-31 10:13 被阅读159次

在执行pod install时报错:

/usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'cocoapods' (>= 0.a) among 32 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/chenrongshan/.gem/ruby/2.3.0:/usr/local/lib/ruby/gems/2.3.0:/usr/local/Cellar/ruby/2.3.1/lib/ruby/gems/2.3.0', execute `gem env` for more information
 from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
 from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
 from /usr/local/bin/pod:22:in `<main>'

查了资料,应该是关于gem版本的问题,直接运行

   sudo gem update --system
   sudo gem install cocoapods

接下来再来执行pod install,问题解决。

相关文章

网友评论

本文标题:pod install报`to_specs': Coul

本文链接:https://www.haomeiwen.com/subject/abpcdttx.html