• 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
Setting values in InfoPlist.strings from Info.plist;
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting values in InfoPlist.strings from Info.plist;
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: is this string styled?
  • Next by Date: Re: is this string styled?
  • Previous by thread: Re: Guarding against missing ObjC implementation
  • Next by thread: Re: Setting values in InfoPlist.strings from Info.plist;
  • Index(es):
    • Date
    • Thread