Installation substitution is not performed using "LoadError - cannot load such file - earlgrey"

I followed the instructions in the form https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md#cocoapods-installation , and when I run pod install I get:

LoadError - cannot load such file -- earlgrey
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:121:in `require'
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:121:in `require'

What am I missing?

+4
source share
2 answers

EarlGreyuses the stone EarlGreyto load any Swift or CocoaPods dependencies, as described here in the document . It seems that the stone was not installed correctly.

, /usr/local/bin, . sudo gem install earlgrey sudo gem install -n /usr/local/bin, !

+2

​​ , sudo gem install earlgrey sudo gem install -n /usr/local/bin. - - macOS Sierra ( )?

LoadError - cannot load such file -- earlgrey
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'

@edit: .
1. configure_earlgrey.rb , Podfile.
https://raw.githubusercontent.com/google/EarlGrey/master/gem/lib/earlgrey/configure_earlgrey.rb
2. require 'earlgrey' load 'configure_earlgrey.rb' post_install Podfile.
3. pod install.

+2

Source: https://habr.com/ru/post/1651738/


All Articles