What are the rules for Xcode variable expansion?
What are the rules for Xcode variable expansion?
- Subject: What are the rules for Xcode variable expansion?
- From: Scott Fraser <email@hidden>
- Date: Tue, 28 Feb 2006 10:59:52 -0800
I note that a path name like
"$(SDKROOT_($arch))/System/Library/Frameworks" works as expected.
However, one variable, "arch" has the prefix "$" inside the
parentheses, while the other "SDKROOT" has the prefix "$" outside the
parentheses. Using "($SDKROOT)" or "$(arch)" doesn't seem to work.
(At least it doesn't seem to work for me.) I also see references in
the Xcode User's Guide to "${variableName}" (using curly braces instead
of parens), and sometimes just plain "$varName" with no parens or
braces. What's the difference? What are the rules for referencing
variables? I suspect it has to do with which tool or shell will be
interpreting the string, but it's not clear.
Thanks.
Scott
-----
_______________________________________________
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