bashdeploymentbitrisesips

Bitrise bash script - command not found


i am building an android project with Bitrise. i am running a bash script that resize the app icon with "sips" command. locally everything is working fine, but when i am running on Bitrise build i got an error: ./Android/android-icons-generator.sh: line 32: sips: command not found

any idea why the sips command is not found? thanks for your help !!


Solution

  • It sounds like you are building locally using macOS and on Bitrise you are building on Linux. As Viktor says in his comment the "sips" command is not available on Linux. You could solve this one of two ways:

    1. Use a cross platform tool for image resizing (ImageMagick is a popular option) and make sure that is installed as part of your build.
    2. Switch to using the Hybrid stack on Bitrise which provides macOS with the Android tooling installed.