To automatically update build dates and build numbers, I configured the script to run for the build phase in my circuit:
# Auto Increment Version Script buildPlist=${PROJECT_DIR}/${INFOPLIST_FILE} CFBuildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist) CFBuildNumber=$(($CFBuildNumber + 1)) /usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlist
Although this works, the disadvantage is that the schemes are tied to user settings, that is, they are excluded from version control and can easily be lost.
What is the right way to solve this problem and make these scripts available to all developers?
source share