非常被cocoapods卡住/红宝石设置

编程入门 行业动态 更新时间:2024-10-28 05:28:17
本文介绍了非常被cocoapods卡住/红宝石设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这很好,然后突然没了。我希望我知道为什么。确实卡住了,无法在网上找到任何东西。我正在研究ObjectiveC项目。我试过使用以下命令重置所有内容:

This was working fine and then suddenly it wasn't. I wish i knew why. Really stuck and cannot find anything online. I'm working on an ObjectiveC project. I've tried reseting everything with:

$ sudo gem uninstall ruby $ sudo gem uninstall cocoapods

然后

$ sudo gem install ruby $ sudo gem install cocoapods $ sudo gem update ruby $ sudo gem update cocoapods

然后我在我的项目目录中运行时

then i when in my projects directory i run

$pod install

并得到以下错误。我在所有项目上都得到了这个

and get the following error. I get this on all projects.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require': cannot load such file -- cocoapods-core (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods.rb:8:in `<module:Pod>' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods.rb:4:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:23:in `<top (required)>' from /usr/bin/pod:23:in `load' from /usr/bin/pod:23:in `<main>'

$ b中$ b

任何想法/线索/答案将不胜感激。

Any ideas/clues/answers would be very appreciated.

推荐答案

我通过运行重新安装了可可豆荚

I reinstalled cocoa pods by running

$ sudo gem uninstall cocoapods-core cocoapods-downloader cocoapods $ sudo gem install cocoapods

为我解决了这个问题

更多推荐

非常被cocoapods卡住/红宝石设置

本文发布于:2023-10-26 20:42:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531294.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:红宝石   cocoapods

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!