プロジェクトはObjective-Cで書かれており、古いバージョンのcocoapod(0.38.0)を使用しています。cocoapodを使った作業でRubyのバージョンが正しくない
私の同僚はすべて旧バージョンのRuby(2.0.0)を使用しています。 私はRuby(2.3.1)の最新バージョンを持っていますので、私の同僚と同じように古いRubyバージョン(2.0.0)をインストールする必要があります。
rvm install 2.0.0 rvm use 2.0.0
私は
pod _0.38.0_ install
をインストールして、このようなエラーが出るcocoapod:
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7 /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'cocoapods' (= 0.38.0) among 11 total gem(s) (Gem::LoadError) Checked in 'GEM_PATH=/Users/chipbk10/.rvm/gems/ruby-2.0.0-p648:/Users/chipbk10/.rvm/gems/[email protected]', execute `gem env` for more information from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec' from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem' from /usr/local/bin/pod:22:in `
示唆したように、私が試したが、それは
gem pristine executable-hooks --version 1.3.2 gem pristine gem-wrappers --version 1.2.7
別のを助けていません奇妙なことが間違っている、異なっているルビーのバージョン表示されます:2.0.0、2.3.1、2.3.0
これは、すべてのRubyのバージョンである私は
rvm list rubies =* ruby-2.0.0-p648 [ x86_64 ] ruby-2.3.1 [ x86_64 ]
を持っている私のcocoapodバージョンは
pod --version 1.0.1
あなたは正しいです。私はそれを修正した。 – chipbk10