使用MacOSX 10.12.4,今天第一次运行了fastlane动作。当fastlane试图安装gem时,它失败了。查看它生成的快速车道错误中引用的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.在构建nokogiri宝石依赖项时,它似乎找不到stdio.h。我可以从非快线脚本中使用系统slather (“Installing宝石”),非常好。我已经安装了XCode命令行工具,重新启动并尝试以sudo的形式运行fastlane命令,但没有一个工具成功地解决了错误。nokogiri应该在哪里找stdio.h?
发布于 2017-04-05 12:23:41
看起来您正在使用预先打包(包含,brew)版本的fastlane,但是这已经知道了需要本机ruby扩展的gem依赖项的问题。正在对如何修复它进行调查(在这里:https://github.com/fastlane/fastlane/issues/8431#issuecomment-284428794)
由于尚未修复/发布,您可以通过gem安装fastlane (最好使用rvm/rbenv)。
请参见:https://github.com/fastlane/fastlane#installation (关于其他安装方法)
https://stackoverflow.com/questions/43191309
复制相似问题