Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What are the rules for Xcode variable expansion?



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.