Installing plugin fails
multiholle opened this issue · comments
I'm trying to install the plugin with fastlane 2.19.1 on macOS 10.12.3 with XCode 8.2.1. The installation fails with the following error:
$ fastlane add_plugin automated_test_emulator_run
+---------------------------------------------+---------+-----------------------------+
| Used plugins |
+---------------------------------------------+---------+-----------------------------+
| Plugin | Version | Action |
+---------------------------------------------+---------+-----------------------------+
| fastlane-plugin-instrumented_tests | 0.1.5 | instrumented_tests |
+---------------------------------------------+---------+-----------------------------+
[11:56:31]: 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/xxx/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.3/ext/json/ext/generator
/Users/xxx/.fastlane/bin/bundle/bin/ruby -r ./siteconf20170303-7636-cjaqez.rb extconf.rb
creating Makefile
current directory: /Users/xxx/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.3/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /Users/xxx/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /Users/xxx/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
In file included from /Users/xxx/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
/Users/xxx/.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/xxx/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.3 for inspection.
Results logged to /Users/xxx/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/json-2.0.3/gem_make.out
An error occurred while installing json (2.0.3), and Bundler cannot continue.
Make sure that `gem install json -v '2.0.3'` succeeds before bundling.
Hello,
I think this problem is related more to fastlane and your gem configuration.
For now make sure that gem install json -v '2.0.3'
succeeds and after that check if gem list
contains version of needed json.
In my case I have this:
json (2.0.3, 2.0.2, 1.8.6, default: 1.8.3)
After that try to run bundle update
before next plugin installation.
Edit:
You might also try to run gem clean
before bundle update
.
I already tried that. I ran gem install json -v '2.0.3'
as admin. This is the list of all my gems with the json gem inculded. I still get the same error.
$ gem list
*** LOCAL GEMS ***
bigdecimal (1.2.0)
CFPropertyList (2.2.8)
io-console (0.4.2)
json (2.0.3, 1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.7)
test-unit (2.0.0.0)
Not sure if it helps. This is my fastlane environment:
✅ fastlane environment ✅
Stack
Key | Value |
---|---|
OS | 10.12.3 |
Ruby | 2.2.4 |
Bundler? | false |
Git | git version 2.10.1 (Apple Git-78) |
Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
Host | Mac OS X 10.12.3 (16D32) |
Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
Is contained | true |
Is homebrew | false |
Xcode Path | /Applications/Xcode821.app/Contents/Developer/ |
Xcode Version | 8.2.1 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_US.UTF-8 | ✅ |
LC_ALL | en_US.UTF-8 | ✅ |
LANGUAGE | en_US.UTF-8 | ✅ |
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.19.1 | ✅ Up-To-Date |
Loaded fastlane plugins:
Plugin | Version | Update-Status |
---|---|---|
fastlane-plugin-automated_test_emulator_run | 1.3.2 | ✅ Up-To-Date |
fastlane-plugin-instrumented_tests | 0.1.5 | ✅ Up-To-Date |
Loaded gems
Gem | Version |
---|---|
CFPropertyList | 2.3.5 |
activesupport | 4.2.7.1 |
addressable | 2.5.0 |
babosa | 1.0.2 |
bigdecimal | 1.2.6 |
bundler | 1.14.3 |
claide | 1.0.1 |
colored | 1.2 |
commander | 4.4.3 |
domain_name | 0.5.20161129 |
dotenv | 2.2.0 |
excon | 0.55.0 |
excon | 0.54.0 |
faraday | 0.11.0 |
faraday-cookie_jar | 0.0.6 |
faraday_middleware | 0.11.0.1 |
fastimage | 2.1.0 |
fastimage | 2.0.1 |
fastlane-plugin-automated_test_emulator_run | 1.3.2 |
fastlane-plugin-instrumented_tests | 0.1.5 |
gh_inspector | 1.0.3 |
google-api-client | 0.9.26 |
googleauth | 0.5.1 |
highline | 1.7.8 |
http-cookie | 1.0.3 |
httpclient | 2.8.3 |
hurley | 0.2 |
i18n | 0.8.1 |
i18n | 0.7.0 |
io-console | 0.4.3 |
json | 1.8.1 |
jwt | 1.5.6 |
libxml-ruby | 2.9.0 |
little-plugger | 1.1.4 |
logging | 2.1.0 |
memoist | 0.15.0 |
mime-types | 3.1 |
mime-types-data | 3.2016.0521 |
mini_magick | 4.5.1 |
minitest | 5.10.1 |
minitest | 5.4.3 |
multi_json | 1.12.1 |
multi_xml | 0.6.0 |
multipart-post | 2.0.0 |
nanaimo | 0.2.3 |
nokogiri | 1.5.6 |
os | 0.9.6 |
plist | 3.2.0 |
power_assert | 0.2.2 |
psych | 2.0.8 |
public_suffix | 2.0.5 |
rake | 10.4.2 |
rdoc | 4.2.0 |
representable | 2.3.0 |
retriable | 2.1.0 |
rouge | 1.11.1 |
rubygems-update | 2.5.2 |
rubyzip | 1.2.1 |
rubyzip | 1.2.0 |
security | 0.1.3 |
signet | 0.7.3 |
slack-notifier | 1.5.1 |
sqlite3 | 1.3.13 |
terminal-notifier | 1.7.1 |
terminal-table | 1.7.3 |
test-unit | 3.0.8 |
thread_safe | 0.3.6 |
thread_safe | 0.3.5 |
tty-screen | 0.5.0 |
tzinfo | 1.2.2 |
uber | 0.0.15 |
unf | 0.1.4 |
unf_ext | 0.0.7.2 |
unicode-display_width | 1.1.3 |
word_wrap | 1.0.0 |
xcodeproj | 1.4.2 |
xcpretty | 0.2.4 |
xcpretty-travis-formatter | 0.0.4 |
generated on: 2017-03-03