Re: Xcode Build numbers and versioning
Re: Xcode Build numbers and versioning
- Subject: Re: Xcode Build numbers and versioning
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 18 Dec 2007 12:11:54 +0100
Hello All,
How do I obtain the version info in Objective-C?
So that I can do something like:
targetBinary --version
Reference:
http://chanson.livejournal.com/125568.html
Just in case, i give you the agvtool way because of the link you give,
but maybe the cocoa way is what you're looking for:
See CFBundleShortVersionString and CFBundleVersion in the Runtime
Configuration Guide.
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html#
Use the NSBundle class to access thoses keys in a Cocoa application.
It also works for command line tool, if you embed a Info.plist file
into it.
See Adding an Info.plist to Single-File Tools for details about it.
http://developer.apple.com/documentation/Security/Conceptual/CodeSigningGuide/Procedures/chapter_3_section_3.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden