I'm running exactly the same issue and I couldn't fix it using sudo gem install earlgrey
or sudo gem install -n /usr/local/bin
. I couldn't find any solution yet - fix doesn't work because of latest update to macOS Sierra (just guessing)?
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:
Found a solution.
1. Download and place configure_earlgrey.rb
file in the same folder where yours Podfile
is.
https://raw.githubusercontent.com/google/EarlGrey/master/gem/lib/earlgrey/configure_earlgrey.rb
2. Replace require 'earlgrey'
with load 'configure_earlgrey.rb'
in post_install
part inside Podfile
.
3. Do pod install
again.