• 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: Xcode Build numbers and versioning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Xcode Build numbers and versioning
      • From: email@hidden
References: 
 >Xcode Build numbers and versioning (From: email@hidden)

  • Prev by Date: Re: Xcode Build numbers and versioning
  • Next by Date: Re: Target issue: Preprocessor Macros Not Used in Precompiled Headers
  • Previous by thread: Re: Xcode Build numbers and versioning
  • Next by thread: Re: Xcode Build numbers and versioning
  • Index(es):
    • Date
    • Thread