美文网首页
fastlane add_plugin pgyer 报错处理

fastlane add_plugin pgyer 报错处理

作者: 不是好程序 | 来源:发表于2017-09-12 11:32 被阅读1180次

    fastlane安装蒲公英插件报错:
    [10:38:16]: It seems like you wanted to load some plugins, however they couldn't be loaded
    [10:38:16]: Please follow the troubleshooting guide: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md
    [10:38:17]: Plugin 'fastlane-plugin-pgyer' was added to './.fastlane/Pluginfile'
    [10:38:17]: Make sure to commit your Gemfile, Gemfile.lock and Pluginfile to version control
    Installing plugin dependencies...
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory:
    /Users/mini5/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0/ext/json/ext/generator
    /Users/mini5/.fastlane/bin/bundle/bin/ruby -r
    ./siteconf20170912-34608-1acd86j.rb extconf.rb
    creating Makefile

    current directory:
    /Users/mini5/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0/ext/json/ext/generator
    make "DESTDIR=" clean

    current directory:
    /Users/mini5/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0/ext/json/ext/generator
    make "DESTDIR="
    compiling generator.c
    clang: warning: no such sysroot directory:
    '/Applications/Xcode-7.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
    [-Wmissing-sysroot]
    In file included from generator.c:1:
    In file included from ./../fbuffer/fbuffer.h:5:
    In file included from
    /Users/mini5/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
    In file included from
    /Users/mini5/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
    /Users/mini5/.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.
    make: *** [generator.o] Error 1

    make failed, exit code 2

    Gem files will remain installed in
    /Users/mini5/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0 for
    inspection.
    Results logged to
    /Users/mini5/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/json-2.1.0/gem_make.out

    An error occurred while installing json (2.1.0), and Bundler cannot
    continue.
    Make sure that gem install json -v '2.1.0' succeeds before bundling.

    解决方式:

    gem install bundler
    bundle install
    fastlane add_plugin pgyer

    成功!

    相关文章

      网友评论

          本文标题:fastlane add_plugin pgyer 报错处理

          本文链接:https://www.haomeiwen.com/subject/lkhcsxtx.html