【command not found: pod】cocoapos出错
Mac OS更新到10.11 pod update
就出错了,o(╯□╰)o。
➜ ~ pod update
zsh: command not found: pod
➜ ~ gem sources -l
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 11 column 1 (Psych::SyntaxError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'
from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:333:in `load_file'
from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:198:in `initialize'
from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:74:in `new'
from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:74:in `do_configuration'
from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:39:in `run'
from /usr/bin/gem:21:in `<main>'
gem uninstall cocoapods
gem sources -l
同样出现如上提示错误,难道是Ruby
的问题。
pod --version
zsh: command not found: pod
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
终于搞定,就是
Ruby
的问题,我重新安装了RVM
,另淘宝的镜像换成Https
了,记得更改镜像如:
安装
RVM
终于找回这货,o(╯□╰)o
参考:
https://rvm.io/rvm/install
http://stackoverflow.com/questions/21663876/cocoapods-install
Try the following command on OS X El Capitan
sudo gem install -n /usr/local/bin cocoapods
https://github.com/CocoaPods/CocoaPods/issues/3736
May be help~