Re: Apple Doc says that PROJECT_NAME, TARGET_NAME Won't Reflect Changes
Re: Apple Doc says that PROJECT_NAME, TARGET_NAME Won't Reflect Changes
- Subject: Re: Apple Doc says that PROJECT_NAME, TARGET_NAME Won't Reflect Changes
- From: Scott Tooker <email@hidden>
- Date: Tue, 29 Apr 2008 11:19:07 -0700
Those build settings should always reflect the current associated
project or target name. I'd file a bug on the documentation.
Scott
On Apr 28, 2008, at 7:01 PM, Jerry Krinock wrote:
If you look here:
http://developer.apple.com/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/build_setting_ref/build_setting_ref.html
You will find that:
PROJECT_NAME
Value: The name of the project at the time it was created.
TARGET_NAME
Value: The name of the target at the time it was created.
My interpretation: If I change a target name or project name, the $
(PROJECT_NAME) and $(TARGET_NAME) will never reflect the change.
What if I 'Duplicate' a target? Is $(TARGET_NAME) the "Original
Name", or "Original Name copy"? Doing an experiment, I get
"Original Name copy". Indeed, if I open the Build Settings first
and then change the target's name, it seems to be stuck forever with
"Original Name copy".
But there's hope. If I change the target's name immediately to "New
Name", before opening the Build Settings, any build setting
containing $(TARGET_NAME) will get the "New Name" This is certainly
what I desire but is contrary to the way I interpret "time it was
created".
Of course, there may be other factors at play and I'm not sure what
is meant by "time it was created".
Could someone please explain why these build settings would have
been designed and/or documented to have such behavior which is, as
far as I can see, not expected and not desired. Where did I miss
the boat?
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden