Xcode Build 号自动增加脚本

2019-08-06  本文已影响0人  James_Geng

996.icu
#!/bin/bash
if [ "Release" != "${CONFIGURATION}" ]; then

exit

else

buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")

buildNumber=$(($buildNumber + 1))

/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"

fi
上一篇下一篇

猜你喜欢

热点阅读