• 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: Shawn Erickson <email@hidden>
  • Date: Wed, 21 Dec 2005 11:55:56 -0800


On Dec 21, 2005, at 11:37 AM, Tommy Nordgren wrote:


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.

If you want a good description of what many of those envars mean review...


<http://developer.apple.com/releasenotes/DeveloperTools/Xcode/ XcodeBuildSettings.html>

-Shawn
_______________________________________________
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


References: 
 >re: Any documentation on how to use Xcode's $MACROs? (From: George Warner <email@hidden>)
 >Re: Any documentation on how to use Xcode's $MACROs? (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: C++ Anyone
  • Next by Date: Re: Any documentation on how to use Xcode's $MACROs?
  • 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