Have you ever wanted a really big number to go against your projects in Xcode? There is a way to have the build number increment everytime you compile (⌘+b).
- In the Targets Build Phases add a Run Script Phase, Editor > Add Build Phase > Add Run Script Build Phase
Add the following snippet of code
buildPlist=$PRODUCT_NAME”/”$PRODUCT_NAME”-Info.plist” CFBundleVersion=$(/usr/libexec/PlistBuddy -c “Print CFBundleVersion” $buildPlist) CFBundleVersion=$(($CFBundleVersion + 1)) /usr/libexec/PlistBuddy -c “Set :CFBundleVersion $CFBundleVersion” $buildPlist
You just have to make sure that you set the Build to an integer and NOT leave it as the 1.0 which it is set to by default.
RelatedXcode Warnings With Swift
Exchange Issues On OSX
Facebook Invalid Redirect URI
Refresh favicon in browser
Using Gmail With a Custom Domain
OSX Keyboard Icons
Handy Xcode Snippets
Push Segue Without Animation
Library Not Loaded Image Not Found Error