• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re: Any documentation on how to use Xcode's $MACROs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Any documentation on how to use Xcode's $MACROs?


  • Subject: re: Any documentation on how to use Xcode's $MACROs?
  • From: George Warner <email@hidden>
  • Date: Wed, 21 Dec 2005 09:41:01 -0800
  • Thread-topic: Any documentation on how to use Xcode's $MACROs?

On Tue, 20 Dec 2005 21:12:53 -0800, Jerry Krinock <email@hidden> wrote:

> In poking through my project's target I see that the automatically-generated
> values use macros in parentheses like:
>
> $(PROJECT_DIR)
> $(SRCROOT)
>
> and in Info.plist I see macros in curly brackets like
>
> ${PRODUCT_NAME}
> ${EXECUTABLE_NAME}
>
> They would probably be quite useful to me if someone could point me at their
> documentation.  A complete list of them would be nice!

If you add a "New Run Script Build Phase" to your target then when you build
you can see all those definitions in the "Build Results" windows transcript
pane (you can toggle the transcript pane by clicking the third small icon in
the horzional divider bar; the first icon is a checkmark, the second a
yellow caution triangle and the third looks like small lines of text).

> Also, is there any way to specify a relative pathname in, say, a search
> path?  For example, I'd like to go up to the project's parent directory and
> then down into a different directory.  I've tried many combinations of ".."
> and "/" with $(PROJECT_DIR) but no luck.

Typically these macros don't include a trailing slash ("/"); So to
concatenate additional path info make sure that you do include it:

"${PROJECT_DIR}"/../Sibling/build/
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


 _______________________________________________
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

  • Follow-Ups:
    • Re: Any documentation on how to use Xcode's $MACROs?
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: re: old errors not cleared out
  • Next by Date: Where is __MyCompanyName__ defined?
  • Previous by thread: Re: Any documentation on how to use Xcode's $MACROs?
  • Next by thread: Re: Any documentation on how to use Xcode's $MACROs?
  • Index(es):
    • Date
    • Thread