gpt4 book ai didi

Cocoapod安装成功后立即出现错误

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

我安装了 CocoaPods:

retine:MacOS jdmuys$ sudo gem install cocoapods
[...]
Successfully installed cocoapods-0.29.0
1 gem installed
Installing ri documentation for cocoapods-0.29.0...
Installing RDoc documentation for cocoapods-0.29.0...

但是,它似乎不起作用:

retine:MacOS jdmuys$ pod --version
/Users/jdmuys/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find cocoapods (>= 0) amongst [addressable-2.3.2, bundler-1.2.3, chunky_png-1.2.6, compass-0.11.7, cookiejar-0.3.0, daemons-1.1.9, em-http-request-1.0.3, em-socksify-0.2.1, erubis-2.7.0, eventmachine-1.0.0, extlib-0.9.15, fssm-0.2.9, haml-3.1.7, http_parser.rb-0.5.3, json_pure-1.4.6, rack-1.4.1, rake-10.0.3, rubygems-bundler-1.1.0, rvm-1.11.3.5, sass-3.1.21, sproutcore-1.9.1, thin-1.2.11, thor-0.14.6] (Gem::LoadError)
from /Users/jdmuys/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/jdmuys/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /Users/jdmuys/.rvm/rubies/ruby-1.9.3-p327/bin/pod:22:in `<main>'

FWIW:

retine:MacOS jdmuys$ xcode-select --print-path
/Applications/Xcode51-Beta4.app/Contents/Developer

(如果我切换到 Xcode 的非 Beta 版本则没有帮助)

retine:MacOS jdmuys$ ruby --version
ruby 1.9.3p327 (2012-11-10) [x86_64-darwin12.2.0]

知道发生了什么以及我可以采取什么措施来解决它吗?

谢谢

最佳答案

我遇到了类似的问题,并且在没有 sudo 的情况下重新安装 - gem install cocoapods - 为我解决了这个问题。

关于Cocoapod安装成功后立即出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21525217/

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