fastlane: fastlane update_fastlane fails for fastlane installed via brew cask
New Issue Checklist
- Updated fastlane to the latest version Cannot update fastlane to latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
fastlane update_fastlane fails
fastlane update_fastlane Updating installed gems Updating fastlane Building native extensions. This could take a while... ERROR: Error installing fastlane: Gems updated: msgpack ERROR: Failed to build gem native extension.current directory: ~/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/msgpack-1.2.4/ext/msgpack~/.fastlane/bin/bundle/bin/ruby -r ./siteconf20181010-90683-12sjet0.rb extconf.rb checking for ruby/st.h… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary Gems already up-to-date: fastlanelibraries 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=~/.fastlane/bin/bundle/bin/$(RUBY_BASE_NAME) ~/.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 ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:587:intry_cpp’ from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:1060:inblock in have_header' from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:911:inblock in checking_for’ from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:inblock (2 levels) in postpone' from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:inopen’ from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:inblock in postpone' from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:inopen’ from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:347:inpostpone' from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:910:inchecking_for’ from ~/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:1059:inhave_header' from extconf.rb:3:in<main>’To see why this extension failed to compile, please check the mkmf.log which can be found here:
~/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/msgpack-1.2.4/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in ~/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/msgpack-1.2.4 for inspection. Results logged to ~/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/msgpack-1.2.4/gem_make.out Cleaning up installed gems… Clean Up Complete
Environment
[15:50:47]: [33mGet started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile[0m [15:50:47]: [33mGenerating fastlane environment output, this might take a few seconds...[0m[15:50:48]: [33mTake notice that this output may contain sensitive information, or simply information that you don't want to make public.[0m [15:50:48]: [32mOpen https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅[0m🚫 fastlane environment 🚫
Stack
Key Value OS 10.14 Ruby 2.2.4 Bundler? false Git git version 2.16.2 Installation Source ~/.fastlane/bin/bundle/bin/fastlane Host Mac OS X 10.14 (18A391) Ruby Lib Dir ~/.fastlane/bin/bundle/lib OpenSSL Version OpenSSL 1.0.2g 1 Mar 2016 Is contained false Is homebrew true Is installed via Fabric.app false Xcode Path /Applications/Xcode.app/Contents/Developer/ Xcode Version 10.0 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.105.2 🚫 Update available Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem Version slack-notifier 2.3.2 atomos 0.1.3 CFPropertyList 2.3.5 claide 1.0.2 colored2 3.1.2 nanaimo 0.2.6 xcodeproj 1.6.0 rouge 2.0.7 xcpretty 0.3.0 terminal-notifier 1.7.1 unicode-display_width 1.1.3 terminal-table 1.7.3 plist 3.2.0 public_suffix 2.0.5 addressable 2.5.1 multipart-post 2.0.0 word_wrap 1.0.0 tty-screen 0.6.3 tty-cursor 0.5.0 tty-spinner 0.8.0 babosa 1.0.2 colored 1.2 highline 1.7.8 commander-fastlane 4.4.6 excon 0.55.0 faraday 0.12.1 unf_ext 0.0.7.4 unf 0.1.4 domain_name 0.5.20170404 http-cookie 1.0.3 faraday-cookie_jar 0.0.6 fastimage 2.1.0 gh_inspector 1.1.2 json 1.8.1 mini_magick 4.5.1 multi_json 1.12.1 multi_xml 0.6.0 rubyzip 1.2.2 security 0.1.3 xcpretty-travis-formatter 0.0.4 dotenv 2.2.0 bundler 1.14.6 faraday_middleware 0.11.0.1 naturally 2.1.0 simctl 1.6.3 uber 0.0.15 declarative 0.0.9 declarative-option 0.1.0 representable 3.0.4 retriable 2.1.0 mime-types-data 3.2016.0521 mime-types 3.1 little-plugger 1.1.4 logging 2.2.2 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.21.2 emoji_regex 0.1.1 libxml-ruby 3.0.0 generated on: 2018-10-10
#######################################################################
fastlane 2.106.0 is available. You are on 2.105.2.
You should use the latest version.
Please update using
fastlane update_fastlane.#######################################################################
[32m2.106.0 Improvements[0m
- [action] fix new try_create_device method (#13509) via John Gadbois
- [supply] take the AAB from Gradle in supply (#13496) via Jonas Schmid
- [match] add support for multiple storage and encryption providers (#13405) via Felix Krause
- [action] remove UDID format validation from register_device (#13459) via Thi
- [deliver,spaceship] Support a new screenshot (Apple Watch Series 4) (#13453) via Tatsuya Tanaka
- [action] new action
download_from_play_storethat does as an action whatfastlane supply initdoes as a command (#13113) via Jan Piotrowski - [core] improve fastlane startup time using bootsnap - behind feature flag (-61% on macOS, -65% on Ubuntu, -7% on Windows!) (#13167) via Jan Piotrowski
- [snapshot] improve screenshot rotation code (#13462) via Jan Piotrowski
- [frameit] fix downloading frames on Windows (#13464) via Jan Piotrowski
- [core] replace Shellwords.(var) with var. (#13467) via Jan Piotrowski
- [core] random .shellescape instead of hard coded wrapping in single quotes (#13468) via Jan Piotrowski
- [action[ escapes branch names in
push_to_git_remoteaction (#13444) via Rishabh Tayal - remove unused ItunesSearchApi (#13450) via Jan Piotrowski
- [core] update
fastlane spaceauthcommand to work with new API (#13442) via Felix Krause - [deliver] wait for candidate builds to appear if not available immediately (#13345) via mjovkovic
- [action] added missing keys to modify_services action. (#13415) via John Knapp
- [pilot] fixes issue with
-t DAVupload parameter not being set in Pilot upload commands (#13404) via Robert MacEachern - [core] make
Helper.ci?return true when running on Azure DevOps (VSTS) (#13425) via Marius Ciocanel
[32mPlease update using fastlane update_fastlane[0m
This is clearly another ruby version issue, but the reason I install fastlane via brew cask install fastlane is to avoid ruby version issues.
Output of mkmf.log:
"/usr/bin/clang -o conftest -I~/.fastlane/bin/bundle/include/ruby-2.2.0/x86_64-darwin15 -I~/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/backward -I~/.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~/.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 "
ld: warning: directory not found for option '-L/Users/crashlytics/buildAgent/work/2484be8b71880c21/bundle-2.28.3/fastlane_lib/dependencies/lib'
ld: library not found for -lruby-static
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 15
Brew install appears fixed now.
@postmechanical What I meant is that something in the install process is looking for a hardcoded path to
Xcode-7.3.1.appwhich is obviously wrong. i.e. it’s not usingxcode-select -p.I see now your issue is slightly different. Perhaps there are two, or it presents differently under different circumstances. Here’s my log:
Same problem here. Using brew cask install to install a standalone package. After install with failed msgpack compilation Fastlane reports version 2.28.3. Build system broken. Please fix ASAP.