Automatic build number incrementing
Automatic build number incrementing
- Subject: Automatic build number incrementing
- From: email@hidden
- Date: Sun, 22 May 2005 12:50:33 +1000
Yep, it's that time of year again where we do our annual "Why the
bleep doesn't PB/Xcode have auto-incrementing build numbers
yet?!? ...and how can we get around it?".
I've just retried all the old solutions from the list archives, using
Perl, shell scripts & Apple scripts, but none of them work with Xcode
2.0, or don't work satisfactorily - i.e. I want to increment
CFBundleVersion (and possibly CFBundleShortVersionString &
CFBundleGetInfoString), not some arbitrary constant in some source file.
So, any ideas? I've tried exploring Xcode 2.0 in Applescript, but I
still can't figure Applescript out (after nearly 10 years of
trying... so much for "Joe Blow's scripting language"), and in any
case the notes in Xcode's dictionary indicate all values regarding
projects are read-only anyway. :(
My next thought is to add a shell script phase to edit the auto-
generated Info.plist... but then I have to store a backup of it
elsewhere (to avoid it being scraped when Xcode rebuilds), which
introduces synchronisation issues et al... not pretty.
Wade Tregaskis (AIM/iChat, Yahoo & Skype: wadetregaskis, ICQ:
40056898, MSN, audio/video iChat & email: email@hidden,
Jabber: email@hidden)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden