Xcode打包实用技巧之自动增加编译版本号
作者:
Mr_Bob_ | 来源:发表于
2016-07-11 18:57 被阅读94次

Paste_Image.png

Paste_Image.png

Paste_Image.png
需要黏贴的代码如下:
echo $CONFIGURATIONif [ "Release" == "${CONFIGURATION}" ]thenbuildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")buildNumber=$(($buildNumber + 1))/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"echo "build number increase"fi
效果如下:

Paste_Image.png
本文标题:Xcode打包实用技巧之自动增加编译版本号
本文链接:https://www.haomeiwen.com/subject/qysjjttx.html
网友评论