Comments (7)
In a desperate attempt to get more information based one this line in the mkmf.log clang: error: linker command failed with exit code 1 (use -v to see invocation)
, I added -v
It worked. I can only guess that the command required any kind of config option at all, even if it was invalid.
¯_(ツ)_/¯
$ sudo fastlane add_plugin appicon -v
Password:
fastlane update available
Please run `brew update && brew cask reinstall fastlane`
fastlane installation at path:
/Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.47.0/bin/fastlane
-----------------------------
fastlane 2.47.0
from fastlane-plugin-appicon.
i had installed fastlane using brew cask install fastlane
and i was getting the same error message as @kaelumania.
i did the following:
sudo rm -rf ~/.fastlane
sudo gem install fastlane
sudo fastlane add_plugin appicon
and it worked
from fastlane-plugin-appicon.
It's failing for me as well.
Installing plugin dependencies...
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/stephanepping/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0/ext/json/ext/generator
/Users/stephanepping/.fastlane/bin/bundle/bin/ruby -r ./siteconf20170626-25816-1p6ai92.rb extconf.rb
creating Makefile
current directory: /Users/stephanepping/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /Users/stephanepping/.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/stephanepping/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
In file included from /Users/stephanepping/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
/Users/stephanepping/.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/stephanepping/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-2.1.0 for inspection.
Results logged to /Users/stephanepping/.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.
from fastlane-plugin-appicon.
Managed to get it working using:
bundle exec fastlane add_plugin appicon
As stated here: joshrlesch/fastlane-plugin-instrumented_tests#7 (comment)
from fastlane-plugin-appicon.
@RWOverdijk @kaelumania can you please share your mkmf.log file content so we can inspect further?
from fastlane-plugin-appicon.
@felipeplets I am having the same problem.
Error message:
[13:54:55]: 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/alysonzepeda/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.4/ext/unf_ext
/Users/alysonzepeda/.fastlane/bin/bundle/bin/ruby -r ./siteconf20170723-87936-qkm1ru.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/alysonzepeda/.fastlane/bin/bundle/bin/$(RUBY_BASE_NAME)
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++lib
--without-stdc++lib
/Users/alysonzepeda/.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/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:541:in `try_link0'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:556:in `try_link'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:735:in `try_func'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:966:in `block in have_library'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in
postpone'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:347:in `postpone'
from /Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for'
from /Users/alysonzepeda/.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/alysonzepeda/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.4/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.4 for inspection.
Results logged to
/Users/alysonzepeda/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/unf_ext-0.0.7.4/gem_make.out
An error occurred while installing unf_ext (0.0.7.4), and Bundler cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.4'` succeeds before bundling.
I installed unf_ext but it doesn't resolve the issue.
$ gem install unf_ext -v '0.0.7.4'
Fetching: unf_ext-0.0.7.4.gem (100%)
Building native extensions. This could take a while...
Successfully installed unf_ext-0.0.7.4
Parsing documentation for unf_ext-0.0.7.4
Installing ri documentation for unf_ext-0.0.7.4
Done installing documentation for unf_ext after 1 seconds
1 gem installed
mkmf.log
"/usr/bin/clang -o conftest -I/Users/alysonzepeda/.fastlane/bin/bundle/include/ruby-2.2.0/x86_64-darwin15 -I/Users/alysonzepeda/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/backward -I/Users/alysonzepeda/.fastlane/bin/bundle/include/ruby-2.2.0 -I. -I/Users/crashlytics/buildAgent/work/2484be8b71880c21/bundle-2.13.0/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.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -pipe conftest.c -L. -L/Users/alysonzepeda/.fastlane/bin/bundle/lib -L. -L/Users/crashlytics/buildAgent/work/2484be8b71880c21/bundle-2.13.0/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.13.0/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 */
from fastlane-plugin-appicon.
Hello :)
I've used rbenv
to manage Ruby version, (v2.1.4)
And then used bundle exec fastlane add_plugin appicon
to fix
from fastlane-plugin-appicon.
Related Issues (20)
- Adaptive icon support? HOT 13
- Icons for new Apple Watch Series 4 HOT 3
- Is there any way to handle creation of LaunchImages?
- can not update fastlane because of mini_magick dependency HOT 2
- Error loading plugin 'fastlane-plugin-appicon' HOT 5
- add support for launch images
- Could not find option 'appicon_devices' in the list of available options
- Doesn't add 1024 x 1024 icon HOT 4
- Generate Rounded Error HOT 2
- not all images get created
- GraphicsMagick still required? HOT 5
- Add support for image url on source HOT 1
- Possibility to bypass 1024 as minimum width HOT 1
- Not working if there are spaces in the path too project root folder
- [Swift] undefined method 'each' for nil:NilClass HOT 1
- Adjust the size of image used for splash screen HOT 7
- iTMSTransporter requires App Store Icon to have no transparent or alpha channel HOT 1
- Could not find action, lane or variable 'appicon' HOT 1
- How to change timeout for the minimagic
- the generated macos app iconset is invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane-plugin-appicon.