fastlane add_plugin pgyer 错误处理
2019-04-08 本文已影响0人
石显军
+-----------------------+---------+--------+
| Used plugins |
+-----------------------+---------+--------+
| Plugin | Version | Action |
+-----------------------+---------+--------+
| fastlane-plugin-pgyer | 0.2.2 | pgyer |
+-----------------------+---------+--------+
[15:44:11]: 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/shixianjun/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.5/ext/unf_ext
/Users/shixianjun/.fastlane/bin/bundle/bin/ruby -r
./siteconf20190408-22794-1oke0ck.rb extconf.rb
checking for main() in -lstdc++... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/shixianjun/.fastlane/bin/bundle/bin/$(RUBY_BASE_NAME)
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++lib
--without-stdc++lib
/Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:456:in `try_do':
The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:541:in
`try_link0'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:556:in
`try_link'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:735:in
`try_func'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:966:in
`block in have_library'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:911:in
`block in checking_for'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:in
`block (2 levels) in postpone'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:in
`open'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:in
`block in postpone'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:in
`open'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:347:in
`postpone'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:910:in
`checking_for'
from /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:961:in
`have_library'
from extconf.rb:6:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/Users/shixianjun/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.5/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/Users/shixianjun/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.5
for inspection.
Results logged to
/Users/shixianjun/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.5/gem_make.out
An error occurred while installing unf_ext (0.0.7.5), and Bundler
cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.5'` succeeds before bundling.
查看 /Users/shixianjun/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.5/mkmf.log
路径下的日志文件
"/usr/bin/clang -o conftest -I/Users/shixianjun/.fastlane/bin/bundle/include/ruby-2.2.0/x86_64-darwin15 -I/Users/shixianjun/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/backward -I/Users/shixianjun/.fastlane/bin/bundle/include/ruby-2.2.0 -I. -I/Users/crashlytics/buildAgent/work/2484be8b71880c21/bundle-2.28.3/fastlane_lib/dependencies/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -mmacosx-version-min=10.10 -isysroot /Applications/Xcode-7.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -pipe conftest.c -L. -L/Users/shixianjun/.fastlane/bin/bundle/lib -L. -L/Users/crashlytics/buildAgent/work/2484be8b71880c21/bundle-2.28.3/fastlane_lib/dependencies/lib -fstack-protector -lruby-static -framework CoreFoundation -lpthread -ldl -lobjc "
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 conftest.c:1:
In file included from /Users/shixianjun/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
In file included from /Users/shixianjun/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
/Users/shixianjun/.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.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
解决方式:
gem install bundler
bundle install
fastlane add_plugin pgyer