Pod MissingSpecError、Ruby、Gem、Cocoapods 等
Pod MissingSpecError, Ruby, Gem, Cocoapods etc
当我运行pod
我现在得到
$ pod
Traceback (most recent call last):
3: from /usr/local/bin/pod:22:in `<main>'
2: from /usr/local/Cellar/ruby/2.6.0_1/lib/ruby/2.6.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
1: from /usr/local/Cellar/ruby/2.6.0_1/lib/ruby/2.6.0/rubygems/dependency.rb:323:in `to_spec'
/usr/local/Cellar/ruby/2.6.0_1/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'cocoapods' (>= 0.a) among 7 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/User1/.gem/ruby/2.6.0:/usr/local/lib/ruby/gems/2.6.0:/usr/local/Cellar/ruby/2.6.0_1/lib/ruby/gems/2.6.0', execute `gem env` for more information
我试过重新安装 Cocoapods、删除所有 gems 等
某处有人评论说这个问题是由于 ruby 被引用的错误路径引起的,但 "right" 应该是哪个?一切都工作了 4 年,但现在 Pod 不能 运行,我不明白。
收到了
1) brew reinstall cocoapods
(将出现关于 linking 的错误消息)
2) brew link --overwrite cocoapods
(修复 link)
我不知道为什么这是一个问题,因为它也可以使用纯 gem
但我现在很高兴
当我运行pod
我现在得到
$ pod
Traceback (most recent call last):
3: from /usr/local/bin/pod:22:in `<main>'
2: from /usr/local/Cellar/ruby/2.6.0_1/lib/ruby/2.6.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
1: from /usr/local/Cellar/ruby/2.6.0_1/lib/ruby/2.6.0/rubygems/dependency.rb:323:in `to_spec'
/usr/local/Cellar/ruby/2.6.0_1/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'cocoapods' (>= 0.a) among 7 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/User1/.gem/ruby/2.6.0:/usr/local/lib/ruby/gems/2.6.0:/usr/local/Cellar/ruby/2.6.0_1/lib/ruby/gems/2.6.0', execute `gem env` for more information
我试过重新安装 Cocoapods、删除所有 gems 等
某处有人评论说这个问题是由于 ruby 被引用的错误路径引起的,但 "right" 应该是哪个?一切都工作了 4 年,但现在 Pod 不能 运行,我不明白。
1) brew reinstall cocoapods
(将出现关于 linking 的错误消息)
2) brew link --overwrite cocoapods
(修复 link)
我不知道为什么这是一个问题,因为它也可以使用纯 gem
但我现在很高兴