fastlane: Error updating fastlane using the installer
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
Was having some issues with the json gem so I tried to use the all-in-one installer package thing for fastlane. Seemed to install fine. Tried to update it didn’t go well.
❯❯❯ fastlane update_fastlane
Updating installed gems
Updating fastlane
Fetching: tzinfo-0.3.52.gem (100%)
Successfully installed tzinfo-0.3.52
Fetching: minitest-4.7.5.gem (100%)
Successfully installed minitest-4.7.5
Fetching: activesupport-4.0.13.gem (100%)
Successfully installed activesupport-4.0.13
Building native extensions. This could take a while...
Gems updated: tzinfo minitest activesupport jsonERROR: Error installing fastlane:
ERROR: Failed to build gem native extension.
current directory: /Users/carlos/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.2/ext/json/ext/generator
/Users/carlos/.fastlane/bin/bundle/bin/ruby -r ./siteconf20161228-55568-1v3kflw.rb extconf.rb
creating Makefile
current directory: /Users/carlos/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.2/ext/json/ext/generator
Gems already up-to-date: fastlane pilot spaceship produce deliver frameit pem snapshot screengrab supply cert sigh match scan gym fastlane_core credentials_manager
make "DESTDIR=" clean
current directory: /Users/carlos/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.2/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/carlos/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
In file included from /Users/carlos/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
/Users/carlos/.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/carlos/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.0.2 for inspection.
Results logged to /Users/carlos/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/json-2.0.2/gem_make.out
Cleaning up installed gems...
Attempting to uninstall activesupport-4.0.13
Successfully uninstalled activesupport-4.0.13
Attempting to uninstall tzinfo-0.3.52
Successfully uninstalled tzinfo-0.3.52
Attempting to uninstall minitest-4.7.5
Successfully uninstalled minitest-4.7.5
Clean Up Complete
❯❯❯
The problem seems with this:
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
which I tried to install but ultimately failed telling me to install the command line tools, even after I did that… now I’m trying to replace my Xcode 8 with Xcode 7…
By the way, my regular bundler install was failing with json problems too, either ensure_xcode_version failed with incompatible library (xcversion seems to require json v1.8)
[14:20:03]: --- Step: ensure_xcode_version ---
[14:20:03]: ----------------------------------
[14:20:03]: $ xcversion selected
[14:20:04]: ▸ /Users/carlos/.gems/gems/json-2.0.2/lib/json/ext.rb:7:in `require': incompatible library version - /Users/carlos/.gems/gems/json-2.0.2/lib/json/ext/parser.bundle (fatal)
[14:20:04]: ▸ from /Users/carlos/.gems/gems/json-2.0.2/lib/json/ext.rb:7:in `<module:Ext>'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/json-2.0.2/lib/json/ext.rb:6:in `<module:JSON>'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/json-2.0.2/lib/json/ext.rb:3:in `<top (required)>'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/json-2.0.2/lib/json.rb:59:in `require'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/json-2.0.2/lib/json.rb:59:in `<module:JSON>'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/json-2.0.2/lib/json.rb:55:in `<top (required)>'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/xcode-install-2.1.0/lib/xcode/install.rb:5:in `require'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/xcode-install-2.1.0/lib/xcode/install.rb:5:in `<top (required)>'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/xcode-install-2.1.0/bin/xcversion:10:in `require'
[14:20:04]: ▸ from /Users/carlos/.gems/gems/xcode-install-2.1.0/bin/xcversion:10:in `<top (required)>'
[14:20:04]: ▸ from /Users/carlos/.gems/bin/xcversion:22:in `load'
[14:20:04]: ▸ from /Users/carlos/.gems/bin/xcversion:22:in `<main>'
Other times I got a seg fault from ruby.
/Users/carlos/.gems/gems/json-2.0.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
I’m going bonkers with this…
Environment
Please run fastlane env and copy the output below. This will help us help you 👍
If you used --capture_output option please remove this block - as it is already included there.
This is the all-in-one:
🚫 fastlane environment 🚫
Stack
| Key | Value |
|---|---|
| OS | 10.12.1 |
| Ruby | 2.2.4 |
| Bundler? | false |
| Git | git version 2.7.4 (Apple Git-66) |
| Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
| Host | Mac OS X 10.12.1 (16B2555) |
| Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
| OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
| Is contained | false |
| Xcode Path | /Volumes/Small/Xcode7.app/Contents/Developer/ |
| Xcode Version | 7.3.1 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | en_US.UTF-8 | ✅ |
| LANGUAGE | en_US.UTF-8 | ✅ |
fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.100.0"
default_platform :ios
platform :ios do
before_all do
Actions.verify_gem!('xcode-install')
Actions.verify_gem!('badge')
ENV["SLACK_URL"] = "https://hooks.slack.com/services/XXXXX"
ensure_xcode_version(version: "8.2.1")
# ensure_git_status_clean
setup
setup_jenkins(result_bundle: false) if Helper.is_ci?
end
… stuff …
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
`./fastlane/Appfile`
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/docs/Appfile.md
app_identifier "XXXX" # The bundle identifier of your app
apple_id "XXX" # Your Apple email address
team_id "XXX" # Developer Portal Team ID
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.3.0 | 🚫 Update availaible |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| slack-notifier | 1.5.1 |
| i18n | 0.7.0 |
| json | 1.8.1 |
| thread_safe | 0.3.5 |
| tzinfo | 1.2.2 |
| minitest | 5.4.3 |
| activesupport | 4.2.7.1 |
| CFPropertyList | 2.3.3 |
| claide | 1.0.1 |
| colored | 1.2 |
| nanaimo | 0.2.2 |
| xcodeproj | 1.4.1 |
| rouge | 1.11.1 |
| xcpretty | 0.2.4 |
| terminal-notifier | 1.7.1 |
| terminal-table | 1.4.5 |
| plist | 3.2.0 |
| public_suffix | 2.0.4 |
| addressable | 2.5.0 |
| multipart-post | 2.0.0 |
| word_wrap | 1.0.0 |
| babosa | 1.0.2 |
| highline | 1.7.8 |
| commander | 4.4.0 |
| excon | 0.54.0 |
| faraday | 0.10.0 |
| unf_ext | 0.0.7.2 |
| unf | 0.1.4 |
| domain_name | 0.5.20161021 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.6 |
| fastimage | 1.6.8 |
| gh_inspector | 1.0.2 |
| uber | 0.0.15 |
| representable | 2.3.0 |
| retriable | 2.1.0 |
| mime-types-data | 3.2016.0521 |
| mime-types | 3.1 |
| hurley | 0.2 |
| little-plugger | 1.1.4 |
| multi_json | 1.12.1 |
| logging | 2.1.0 |
| jwt | 1.5.6 |
| memoist | 0.15.0 |
| os | 0.9.6 |
| signet | 0.7.3 |
| googleauth | 0.5.1 |
| httpclient | 2.8.2.4 |
| google-api-client | 0.9.20 |
| mini_magick | 4.5.1 |
| multi_xml | 0.5.5 |
| rubyzip | 1.1.7 |
| security | 0.1.3 |
| xcpretty-travis-formatter | 0.0.4 |
| dotenv | 2.1.1 |
| bundler | 1.13.6 |
| faraday_middleware | 0.10.1 |
generated on: 2016-12-28
This is my bundler:
✅ fastlane environment ✅
Stack
| Key | Value |
|---|---|
| OS | 10.12.1 |
| Ruby | 2.3.1 |
| Bundler? | false |
| Git | git version 2.7.4 (Apple Git-66) |
| Installation Source | ~/.gems/bin/fastlane |
| Host | Mac OS X 10.12.1 (16B2555) |
| Ruby Lib Dir | /usr/local/Cellar/ruby/2.3.1_2/lib |
| OpenSSL Version | OpenSSL 1.0.2j 26 Sep 2016 |
| Is contained | false |
| Xcode Path | /Volumes/Small/Xcode7.app/Contents/Developer/ |
| Xcode Version | 7.3.1 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | ||
| LANGUAGE |
fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.100.0"
default_platform :ios
platform :ios do
before_all do
Actions.verify_gem!('xcode-install')
Actions.verify_gem!('badge')
ENV["SLACK_URL"] = "https://hooks.slack.com/services/XXXX"
ensure_xcode_version(version: "8.2.1")
# ensure_git_status_clean
setup
setup_jenkins(result_bundle: false) if Helper.is_ci?
end
… stuff …
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
`./fastlane/Appfile`
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/docs/Appfile.md
app_identifier "XXXXX" # The bundle identifier of your app
apple_id "XXXXX" # Your Apple email address
team_id "XXXXXXXX" # Developer Portal Team ID
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.3.1 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| did_you_mean | 1.0.0 |
| slack-notifier | 1.5.1 |
| CFPropertyList | 2.3.4 |
| claide | 1.0.1 |
| colored | 1.2 |
| nanaimo | 0.2.3 |
| xcodeproj | 1.4.2 |
| rouge | 1.11.1 |
| xcpretty | 0.2.4 |
| terminal-notifier | 1.7.1 |
| plist | 3.2.0 |
| public_suffix | 2.0.4 |
| addressable | 2.5.0 |
| multipart-post | 2.0.0 |
| word_wrap | 1.0.0 |
| babosa | 1.0.2 |
| highline | 1.7.8 |
| commander | 4.4.2 |
| excon | 0.54.0 |
| faraday | 0.10.0 |
| unf_ext | 0.0.7.2 |
| unf | 0.1.4 |
| domain_name | 0.5.20161129 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.6 |
| gh_inspector | 1.0.2 |
| uber | 0.0.15 |
| representable | 2.3.0 |
| retriable | 2.1.0 |
| mime-types-data | 3.2016.0521 |
| mime-types | 3.1 |
| hurley | 0.2 |
| little-plugger | 1.1.4 |
| multi_json | 1.12.1 |
| logging | 2.1.0 |
| jwt | 1.5.6 |
| memoist | 0.15.0 |
| os | 0.9.6 |
| signet | 0.7.3 |
| googleauth | 0.5.1 |
| httpclient | 2.8.3 |
| google-api-client | 0.9.20 |
| json | 2.0.2 |
| mini_magick | 4.5.1 |
| multi_xml | 0.6.0 |
| security | 0.1.3 |
| xcpretty-travis-formatter | 0.0.4 |
| dotenv | 2.1.1 |
| bundler | 1.13.5 |
| faraday_middleware | 0.10.1 |
| io-console | 0.4.5 |
| rubyzip | 1.2.0 |
| unicode-display_width | 1.1.2 |
| terminal-table | 1.7.3 |
generated on: 2016-12-28
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 15
- Comments: 38 (15 by maintainers)
same issue here, this is my output
hjanuschka,
When I run
xcode-select --install, I get the messagexcode-select: error: command line tools are already installed, use "Software Update" to install updates.Seems like I have command line tools installed. I also verified by typing
gcc. I get the outputclang:error: no input files`.I am running Xcode 8.2 on El Capitan (OS X version 10.11.6).
Any update on this ?
Still the same problem here… Fastlane tools bundle v2.14.2 and Xcode 8.1 on El Capitan
Any update on this?
I am facing the same problem as @larryonoff. After I run
fastlane run update_fastlaneI can not updating fastlane to the latest version from 2.3.0 to 2.3.1. The problemfatal error: 'stdio.h' file not found #include <stdio.h>still exists.Just noticed that I’m unable updating fastlane to the latest version from 2.3.0 to 2.3.1 with
fastlane run update_fastlane, whenfastlane update_fastlanestill throws an error.🚫 fastlane environment 🚫
Stack
System Locale
fastlane gems
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
generated on: 2017-01-01
I was experiencing this same issue. Found this GitHub issue #6006 that said to run
fastlane run update_fastlaneAfter running this command, it said it successfully updated and I was able to run normal fastlane commands again.I have exactly the sane problem
fastlane run update_fastlanewill only get me to2.3.0. If there’s anything I can do to help, let me know!One way I get to the problem is trying to update the all-in-one fastlane using
fastlane update_fastlane…Here’s the related stack:
Stack
System Locale
This is using all built in stuff (system ruby is a different version for instance) but fails to compile the json gem…
I tried a
brew cask reinstall fastlanejust before this but did nothing special and didn’t update…here's the log of that