On Feb 5, 2010, at 1:56 PM, jonat...@mugginsoft.com wrote: >> 2) Right now the file doesn't get built new every time I build my >> application. So the number isn't increasing yet. How can this be achieved? > I use the following in a script phase to get a perpetually increasing build > number. > > #!/bin/bash > # http://davedelong.com/blog/2009/04/15/incrementing-build-numbers-xcode > buildNumber=$(/usr/libexec/PlistBuddy -c "Print MGSBuildNumber" Info.plist) > buildNumber=$(($buildNumber + 1)) > /usr/libexec/PlistBuddy -c "Set :MGSBuildNumber $buildNumber" Info.plist
This taints your original Info.plist with changing data, which is annoying for version-controlled code. You can find the script I use at <http://blog.darkrainfall.org/?p=185>; it's a short AppleScript that tricks Xcode into doing the right thing. -- Gwynne _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com