I have this script made to autoincrement the build number on every build:
#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $INFOPLIST_FILE)
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" $INFOPLIST_FILE
I inserted it on the build phases before the "copy bundle resources". First, in the Shell Field I left the default /bin/sh but it gave me a Shell Script Invocation Error saying:
Command /bin/sh failed with exit code 1
So i looked up what to do and I discovered that changing the Shell to /bin/bash could fix it. I did so and I still have the same error. It still tells me that the Command /bin/sh failed with exit code 1. Why is it still telling me I have an error with /bin/sh if it does not exist anymore?



