Re: Versions
Re: Versions
- Subject: Re: Versions
- From: Romain Brestac <email@hidden>
- Date: Thu, 29 Jan 2004 19:51:30 +0100
As you know, Xcode is highly applescriptable.
Here is the script I use to increment the build number:
[script increment build number]
tell application "Xcode"
tell product settings of current target of current project
try
set buildnumber to (value for key "CFBundleVersion" of it) as number
on error
set buildnumber to 0
end try
set BN to set value ((buildnumber + 1) as text) for key
"CFBundleVersion" of it as assignment type
end tell
log "NEW BUILD NUMBER:" & BN
end tell
[/script]
Then, call it from a shell script phase like this:
osascript $SRCROOT/SCRIPT_NAME.applescript
Hope this helps.
Romain.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.