您的位置:首页 > 其它

cocoapods安装和使用常见问题及解决方案

2017-04-10 11:07 316 查看
cocopods安装后pod install出现以下错误


/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems.rb:270:in find_spec_for_exe: can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)

from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems.rb:298:in activate_bin_path

from /usr/local/bin/pod:22:in


解决方法:

sudo gem install -n /usr/local/bin cocoapods


pod install 出现 Unable to find a specification for xxxxx


Lovego:TYJHGame LOVEGO$ pod install

Analyzing dependencies

[!] Unable to find a specification for YJ3DTouch


解决方案:

pod repo update


更新一下repo,更新完成之后即可解决无法找到xxx第三方框架的问题了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: