Open antonshevchenko opened 3 years ago
From what I can tell, when building the project it fails at line 6 of scripts/icon_versioning.sh
:
convertPath=`which convert`
echo ${convertPath}
if [[ ! -f ${convertPath} || -z ${convertPath} ]]; then
echo "warning: Skipping Icon versioning, you need to install ImageMagick and ghostscript (fonts) first, you can use brew to simplify process:
brew install imagemagick
brew install ghostscript"
exit -1;
fi
However if I run which convert
in my terminal it does return the correct path:
antonshevchenko@Antons-MacBook-Pro breadwallet-ios % which convert
/opt/homebrew/bin/convert
Have you found any solution?
Found solution:
In file breadwallet.xcodeproj -> Build Phases -> Icon Versioning
Change
export PATH=/opt/local/bin/:/opt/local/sbin:$PATH:/usr/local/bin:
to
export PATH=/opt/local/bin/:/opt/local/sbin:/usr/local/bin:$PATH:/opt/homebrew/bin:
Same thing with SwiftLint - add to top export PATH=$PATH:/opt/homebrew/bin:
in SwiftLint section.
Steps to reproduce:
git clone https://github.com/breadwallet/breadwallet-ios.git
git submodule update --init --recursive
brew install imagemagick && brew install ghostscript
open breadwallet.xcworkspace
Getting the following error:
Screenshots: