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

Re: Build variables in .strings files?


  • Subject: Re: Build variables in .strings files?
  • From: Mike Fischer <email@hidden>
  • Date: Thu, 12 Aug 2004 02:58:28 +0200

Am 12.08.2004 um 01:19 schrieb Scott Tooker:

Xcode 1.5 doesn't perform any macro expansion on InfoPlist.strings files.

Ah too bad. Thanks for the info though. I'll be filing an enhancement request i guess.


A second reason for preprocessing .strings files would be to allow for conditional "compilation". I often find that I need to build different versions of my projects and it would be nice to be able to leave out the parts not relevant for the current version.


Mike


Scott

On Aug 10, 2004, at 6:59 PM, Mike Fischer wrote:

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.




--
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.


References: 
 >Build variables in .strings files? (From: Mike Fischer <email@hidden>)
 >Re: Build variables in .strings files? (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: XCode 1.5 - Subversion - NIB files are built with .svn directory copied
  • Next by Date: Re: XCode 1.5 - Subversion - NIB files are built with .svn directory copied
  • Previous by thread: Re: Build variables in .strings files?
  • Next by thread: PackageMaker problems
  • Index(es):
    • Date
    • Thread