• 欢迎访问趣尚博客、分享互联网、软件、编程、创业、英语、VPS 推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您喜欢我的博客,那么请使用Ctrl+D 收藏吧!

`to_specs’: Could not find ‘cocoapods’ (>= 0) among 12 total gem(s) (Gem::MissingSpecError) 报错

iOS qushang 4年前 (2017-03-12) 1551次浏览

/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:308:in `to_specs’: Could not find ‘cocoapods’ (>= 0) among 12 total gem(s) (Gem::MissingSpecError)
Checked in ‘GEM_PATH=/Users/pengting/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0′, execute `gem env` for more information
from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:320:in `to_spec’
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:65:in `gem’
from /usr/local/bin/pod:22:in `<main>’

 

 

出现上面报错

最后重新执行 sudo gem install cocoapods

然后pod install

解决了上面报错的问题


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:`to_specs’: Could not find ‘cocoapods’ (>= 0) among 12 total gem(s) (Gem::MissingSpecError) 报错
喜欢 (0)
[399397742@qq.com]
分享 (0)