1.Add a new "revision.h"file
2.Add a new Run script for the target
3.
input the REV=`svnversion -nc | /usr/bin/sed -e 's/^[^:]*://;s/[A-Za-z]//'`
BASEVERNUM=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "${INFOPLIST_FILE}"`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BASEVERNUM.$REV" "${INFOPLIST_FILE}"
4.clean the target and run
posted on 2011-08-15 12:11
雨 阅读(272)
评论(0) 编辑 收藏