can't find gem cocoapods
问题描述
找到一个项目,下载下来后执行```pop install``提示如下错误:
1
2
3
/Library/Ruby/Site/2.6.0/rubygems.rb:264:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.6.0/rubygems.rb:283:in `activate_bin_path'
from /usr/local/bin/pod:23:in `<main>'
解决方案
Remove cocoapods:
1
sudo gem uninstall cocoapods
Then instal again:
1
sudo gem install -n /usr/local/bin cocoapods
重装之后,神奇的就好了。
参考资料
本文由作者按照 CC BY 4.0 进行授权
Comments powered by Disqus.