Access Build Version from Tool
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