gpt4 book ai didi

cocoapods - 非常被cocoapods卡住/ ruby 设置

转载 作者:行者123 更新时间:2023-12-03 16:00:00 72 4
gpt4 key购买 nike

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

$ sudo gem uninstall ruby
$ sudo gem uninstall cocoapods

然后
$ sudo gem install ruby
$ sudo gem install cocoapods
$ sudo gem update ruby
$ sudo gem update cocoapods

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

并得到以下错误。我在所有项目上都知道这一点。
/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>'

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

最佳答案

我通过运行重新安装了 cocoa pod

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

那为我解决了这个问题

关于cocoapods - 非常被cocoapods卡住/ ruby 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21072918/

72 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com