• 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: email@hidden
  • Date: Wed, 19 Dec 2007 09:27:53 +0800

Woah. Thanks so much Daniel!


Quoting Jean-Daniel Dupas <email@hidden>:

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


References: 
 >Xcode Build numbers and versioning (From: email@hidden)
 >Re: Xcode Build numbers and versioning (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: .net framework
  • Next by Date: Re: .net framework
  • Previous by thread: Re: Xcode Build numbers and versioning
  • Next by thread: linking issue when attempting to create a universal binary
  • Index(es):
    • Date
    • Thread