Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge is not converting the shield image *.svg.png #82

Closed
elvin-vega opened this issue Nov 19, 2018 · 2 comments
Closed

Badge is not converting the shield image *.svg.png #82

elvin-vega opened this issue Nov 19, 2018 · 2 comments

Comments

@elvin-vega
Copy link

Recently I was involved in a project to implement for our in house releases badges and shields.

When we execute badge command (ex. badge --shield "3.4.0-blue" --dark true) we get the following error:
| => badge --shield "3.4.0-blue" --dark true
[19:21:24]: Start adding badges...
[19:21:25]: './AppIcon.appiconset/Icon-App-60x60@2x.png'
[19:21:25]: './AppIcon.appiconset/Icon-App-60x60@2x.png'
dyld: Symbol not found: OBJC_CLASS$_NSFont
Referenced from: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/libpangocairo-1.0.0.dylib
Expected in: flat namespace
in /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/libpangocairo-1.0.0.dylib

[19:21:25]: Error accessing file, this might be due to fastlane's directory handling
[19:21:25]: Check out https://docs.fastlane.tools/advanced/#directory-behavior for more details

Traceback (most recent call last):
18: from ${HOME_DIR}/.rbenv/versions/2.5.1/bin/badge:23:in '

'
17: from ${HOME_DIR}/.rbenv/versions/2.5.1/bin/badge:23:in 'load'
16: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/bin/badge:7:in '<top (required)>'
15: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/commands_generator.rb:11:in 'start'
14: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/commands_generator.rb:39:in 'run'
13: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in 'run!'
12: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in 'run!'
11: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in 'run_active_command'
10: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in 'run'
9: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in 'call'
8: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/commands_generator.rb:34:in 'block (2 levels) in run'
7: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/runner.rb:65:in 'run'
6: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/runner.rb:65:in 'each'
5: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/runner.rb:80:in 'block in run'
4: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/badge-0.9.1/lib/badge/runner.rb:117:in 'add_shield'
3: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:89:in 'open'
2: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/2.5.0/open-uri.rb:37:in 'open'
1: from ${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/2.5.0/open-uri.rb:37:in 'open'
${HOME_DIR}/.rbenv/versions/2.5.1/lib/ruby/2.5.0/open-uri.rb:37:in 'initialize': No such file or directory @ rb_sysopen - 3.4.0-blue.svg.png (Errno::ENOENT)


I have the following versions installed:
fastlane 2.94.0
fastlane-plugin-badge 1.1.0
badge 0.9.1
| => convert -version
Version: ImageMagick 7.0.8-15 Q16 x86_64 2018-11-19 https://imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png tiff webp xml zlib


I already try upgrading fastlane to the latest version 2.108.0, but we still having same behavior.

@elvin-vega
Copy link
Author

I remove the entry below from my PATH environment variable and start working normally.
export PATH="/Library/Frameworks/Mono.framework/Versions/Current/bin:$PATH"

Anything can be done to make this plugin work if that path exists?

@HazAT
Copy link
Owner

HazAT commented Nov 27, 2018

Closing this for now, if you have interest providing a repro case for this I will try to fix it.
Thanks for posting your fix though.

@HazAT HazAT closed this as completed Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants