Ruby fastlane slather操作无法安装gem

Ruby fastlane slather操作无法安装gem,ruby,macos,rubygems,fastlane,Ruby,Macos,Rubygems,Fastlane,使用MacOSX 10.12.4,今天首次运行fastlane slather操作。fastlane尝试安装gem时失败。查看它生成的fastlane错误中提到的mkmf.log,它在构建nokogiri时显示: In file included from conftest.c:1: In file included from /Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33: In file included fr

使用MacOSX 10.12.4,今天首次运行fastlane slather操作。fastlane尝试安装gem时失败。查看它生成的fastlane错误中提到的mkmf.log,它在构建nokogiri时显示:

In file included from conftest.c:1:
In file included from /Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
In file included from /Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
/Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/defines.h:26:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
conftest.c中包含的文件中的
:1:
在/Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33中包含的文件中:
在/Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29中包含的文件中:
/Users/mstoner/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/defines.h:26:10:致命错误:“未找到stdio.h”文件
#包括
^
生成1个错误。

在构建nokogiri gem依赖项时,它似乎找不到stdio.h。我能够从非fastlane脚本完美地使用系统slather gem(“安装gem slather”)。我已经安装了XCode命令行工具,重新启动并尝试以sudo的身份运行fastlane命令,但没有一个能够绕过这个错误。nokogiri应该在哪里寻找stdio.h?

看起来您使用的是fastlane的预打包(包含,brew)版本,但这与需要本机ruby扩展的gem依赖项有关。正在对如何修复它进行调查(此处:)

由于此问题尚未解决/发布,您可以通过
gem
安装fastlane(最好使用
rvm/rbenv


请参阅:(有关其他设置方法)

看起来您使用的是fastlane的预打包(包含,brew)版本,但这与需要本机ruby扩展的gem依赖项有关。正在对如何修复它进行调查(此处:)

由于此问题尚未解决/发布,您可以通过
gem
安装fastlane(最好使用
rvm/rbenv


请参阅:(有关其他设置方法)

谢谢@Helmut Januschka,这正是我最终要做的事情-使用使用rvm的fastlane的直接rubygem版本保持清晰。这就绕过了slather gem issueThanks@Helmut Januschka,这正是我最终不得不做的事情——使用直接的rubygem版本的fastlane,使用rvm保持事物清晰。这绕过了slather宝石的问题