美文网首页
2019-08-09

2019-08-09

作者: CCCRick | 来源:发表于2019-08-09 16:53 被阅读0次

    iOS打包build自增
    if [ CONFIGURATION == Release ]; then echo "Bumping build number..." plist={PROJECT_DIR}/${INFOPLIST_FILE}

    increment the build number (ie 115 to 116)

    buildnum=(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "{WORKSPACE_DIR}/{INFOPLIST_FILE}") if [[ "{buildnum}" == "" ]]; then
    echo "No build number in $plist"
    exit 2
    fi

    buildnum=(exprbuildnum + 1)
    /usr/libexec/Plistbuddy -c "Set CFBundleVersion buildnum" "{WORKSPACE_DIR}/{INFOPLIST_FILE}" echo "Bumped build number tobuildnum"

    else
    echo $CONFIGURATION " build - Not bumping build number."

    fi

    相关文章

      网友评论

          本文标题:2019-08-09

          本文链接:https://www.haomeiwen.com/subject/mqwhjctx.html