4

I followed the instructions as verbatim on https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md#cocoapods-installation and I 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

3 回答 3

2

我正在运行完全相同的问题,我无法使用sudo gem install earlgreyor修复它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'in post_installpart inside Podfile
3. 再做pod install一次。

于 2016-09-22T14:39:21.597 回答
2

EarlGrey使用earlgreygem 来下载文档中所述的任何 Swift 或 CocoaPods 依赖。似乎 gem 没有正确安装。

请记住,gems 安装在 中/usr/local/bin,您可能需要提供访问权限。这样做,做sudo gem install earlgreysudo gem install -n /usr/local/bin,你应该准备好了!

于 2016-08-19T04:56:29.107 回答
0

sudo arch -x86_64 gem install ffi

然后

拱 -x86_64 吊舱安装

于 2021-09-16T22:04:30.180 回答