Build settings referenced in Info.plist settings dict.
Build settings referenced in Info.plist settings dict.
- Subject: Build settings referenced in Info.plist settings dict.
- From: Keith Renz <email@hidden>
- Date: Fri, 27 Dec 2002 20:13:07 -0500
(This is a duplicate post from the Project Builder - Users list. No
responses in 6 days, so I figured I'd try here.)
I'm trying to one of the new features documented in the PB 2.1 release
notes.
Under "Build settings changes", the 8th bullet says, "Build settings
can now be referenced in the Info.plist Settings dictionary of a
target." It then gives an example. I am basically trying to do the
exact same thing as the example, that is, add a version number to the
build settings and reference it in the Info.plist dictionary, instead
of entering the version number several times in different places.
In the Target window -> Settings -> Expert View, I added a Build
Setting named CURRENT_VERSION (just like the example) with a value of
"5.0d6" (without the quotes). In the same window -> Info.plist Entries
-> Expert View, I substituted "$(CURRENT_VERSION)" (without the quotes)
for several property list values, ex. for CFBundleGetInfoString, I used
"$(CURRENT_VERSION). Copyright ) 2002 Crewdog Software. All Rights
Reserved." (without the quotes). I then built the target. It doesn't
work. all the CURRENT_VERSION references ($(CURRENT_VERSION)) do not
substitute the build setting's value. In the Finder and About box, I
see "$(CURRENT_VERSION)" instead of the build setting's value, "5.0d6".
I even cleaned the target and trashed the built app -- no difference.
What am I doing wrong?
Thanks,
Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.