• 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: Tommy Nordgren <email@hidden>
  • Date: Wed, 21 Dec 2005 20:37:33 +0100


Dec 21, 2005 kl. 6:41 PM skrev George Warner:

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).

by creating a custom script phase, setting the shell to /usr/bin/ perl, and entering:
open (FH,">XCodeVars.txt");
for my $i (keys %ENV) {
my $e = $ENV{$i};
print FH "$i : $e\n";
}
close FH;


you can get a nice file dump of all XCODE environment vars.


------------------------------------- This sig is dedicated to the advancement of Nuclear Power Tommy Nordgren 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


  • Follow-Ups:
    • Re: Any documentation on how to use Xcode's $MACROs?
      • From: Prachi Gauriar <email@hidden>
    • Re: Any documentation on how to use Xcode's $MACROs?
      • From: Shawn Erickson <email@hidden>
References: 
 >re: Any documentation on how to use Xcode's $MACROs? (From: George Warner <email@hidden>)

  • Prev by Date: Re: Where is __MyCompanyName__ defined?
  • Next by Date: Re: C++ Anyone
  • 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