command not found,about identify and convert
btxkenshin opened this issue · comments
IconOverlaying.build/Script-CD06950D16E8D47600983DF2.sh: line 32: identify: command not found
I have install the following
brew install imagemagick
brew install ghostscript
and,also i can directly run identify or convert in Terminal.
need help~
make sure you are sourcing your .profile / .bash_profile (depending on which one you have) at the beging of script, otherwise xcode messes up PATH when running your scripts.
Worst case scenario use which command
to find direct path to installed commands, and use it in script. But this should be your last resort as it's less flexible.
Let me know if it helped
Same situation. "which" shows real paths. Could you describe more detail about .profile / .bash_profile ?
normally by sourcing .profile / .bash_profile you set up correct variables for shell, XCode is often missing stuff like /usr/bin in PATH when spawning it's shell, you could expand PATH at the begging of script or just use direct path's to those commands