• 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
Build variables in .strings files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build variables in .strings files?


  • Subject: Build variables in .strings files?
  • From: Mike Fischer <email@hidden>
  • Date: Wed, 11 Aug 2004 03:59:12 +0200

Hi everyone,

I have jsut converted a project to Xcode 1.5 and was very happy to see that build variables can now be used in the Info.plist files.

Of course the logical next step would be to also allow them in the InfoPlist.strings files (as well as generally in all .strings files). Is this possible? I couldn't get this to work using the following syntax:

I have defined a custom build variable named "CURRENT_MARKETING_VERSION" with the value "1.0b1" (without the quotes in both cases) in my target settings.

Then in the file: English.lproj/InfoPlist.strings:
-------------------------------------
/* Localized strings for the English bundle info */
CFBundleShortVersionString = "$(CURRENT_MARKETING_VERSION)";
/* EOF */
-------------------------------------

Currently the literal string "$(CURRENT_MARKETING_VERSION)" is used instead of the value of the build variable ("1.0b1").

Am I doing something wrong? Is this supported? If not I'll file an enhancement request.


Note: This example is trivial of course but there are situations where I might want to combine localized information with settings defined once in the build settings.



Thanks! Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Web: <http://homepage.mac.com/mike_fischer/index.html> Note: I read this list in digest mode! Send me a private copy for faster responses. _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Build variables in .strings files?
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Re: Weird toolbar button behavior in 1.5?
  • Next by Date: Re: Xcode 1.5 Release - Java Code Completion Issues
  • Previous by thread: Re: external editors and breakpoints
  • Next by thread: Re: Build variables in .strings files?
  • Index(es):
    • Date
    • Thread