• 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
Access Build Version from Tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Access Build Version from Tool


  • Subject: Access Build Version from Tool
  • From: Alexander Hartner <email@hidden>
  • Date: Fri, 13 Jul 2007 00:04:36 +0100

I am trying to access the build version used from the tool. I configured my project to use the Apple Generic Versioning System and upgrade the version periodically using the avgtool. The updates are reflected in the XYZ-Info.plist files which is included in the XYZ target.

CFBundleRef bundleRef = CFBundleGetMainBundle();
NSLog(@"Bundle ID : %@", CFBundleGetIdentifier (bundleRef));
NSLog(@"Detail : %@", CFBundleGetValueForInfoDictionaryKey (bundleRef,kCFBundleVersionKey));


When I execute the application the values returned are all null. I tried changing the XYZ-Info.plist file to Info.plist and then it works, but it prints only the values of the Info.plist file in the same directory. If I delete the file from the build/Release folder I get nulls again.

The what command is able to access the build application so there is a solution to this problem, I just haven't found it.

Thanks in advance
Alex

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSTask troubles
  • Next by Date: Re: NSTask troubles
  • Previous by thread: Re: NSTask troubles
  • Next by thread: Sharing a Framework between multiple applications
  • Index(es):
    • Date
    • Thread