Re: Build variables in .strings files?
Re: Build variables in .strings files?
- Subject: Re: Build variables in .strings files?
- From: Scott Tooker <email@hidden>
- Date: Wed, 11 Aug 2004 16:19:55 -0700
Xcode 1.5 doesn't perform any macro expansion on InfoPlist.strings
files.
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.
_______________________________________________
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.