Setting values in InfoPlist.strings from Info.plist;
Setting values in InfoPlist.strings from Info.plist;
- Subject: Setting values in InfoPlist.strings from Info.plist;
- From: "Matt Budd (Madentec)" <email@hidden>
- Date: Mon, 9 Jan 2006 12:01:01 -0700
Hello all,
I want to set the following values in my InfoPlist.strings file:
CFBundleShortVersionString = "1.0";
CFBundleGetInfoString = "Version 1.0; Copyright My Company";
However, there is also the following key in the Info.plist file (and
this key is set by the target properties in Xcode):
<key>CFBundleVersion</key>
<string>1.0</string>
So basically, I want to have to change the version number only once
(i.e. change it through Xcode which changes the Info.plist property).
Is there a way that I can make these InfoPlist.strings entries
reference the Info.plist key. Something like maybe the following:
CFBundleShortVersionString = [CFBundleVersion];
CFBundleGetInfoString = "Version " + [CFBundleVersion] + ";
Copyright My Company";
It's better to only have to change the version in once place, but it
would also help since the InfoPlist.strings would then be correct if
I had multiple targets that had their own different versions. Any
suggestions?
- Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden