• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Versioning / increasing build number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Versioning / increasing build number


  • Subject: Re: Versioning / increasing build number
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 5 Feb 2010 18:56:34 +0000

On 5 Feb 2010, at 10:40, Stefan Wolfrum 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

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Versioning / increasing build number
      • From: Gwynne Raskind <email@hidden>
References: 
 >Versioning / increasing build number (From: Stefan Wolfrum <email@hidden>)

  • Prev by Date: does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
  • Next by Date: Re: does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
  • Previous by thread: Re: Versioning / increasing build number
  • Next by thread: Re: Versioning / increasing build number
  • Index(es):
    • Date
    • Thread