Return to Snippet

Revision: 67491
at September 28, 2014 17:46 by AndreyZarembo

Initial Code
bN=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
bN=$(($bN + 1)) 
bN=$(printf "%X" $bN)
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $bN" "$INFOPLIST_FILE"

Initial URL

Initial Description
1. Click on the **Build Phases** tab. 
2. Click on **Add Build Phase** (at the lower right corner) and choose **Add Run Script**. 
4. Drag the **Run Script** section to **2nd** position from the top, just below Target Dependencies.
5. **Add snippet code**
6. Ensure, that **Run script only when installing** is __not checked__
7. **Rename** it

Initial Title
XCode Autoincrement build number script

Initial Tags

Initial Language