Build settings referenced in Info.plist settings dict.
-
(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 | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
There were several messages on this topic. This feature did not
actually make it into the December tools.
Michael
On Friday, December 27, 2002, at 05:13 PM, Keith Renz wrote:
> (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 | <cocoa-dev...>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
Bummer. Thanks for the quick reply.
Keith
-----
On Friday, December 27, 2002, at 08:31 PM, Michael Latta wrote:
> There were several messages on this topic. This feature did not_______________________________________________
> actually make it into the December tools.
>
> Michael
>
>
> On Friday, December 27, 2002, at 05:13 PM, Keith Renz wrote:
>
>> (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 | <cocoa-dev...>
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


