• 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
How to configure the search path of a run-script build phase?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to configure the search path of a run-script build phase?


  • Subject: How to configure the search path of a run-script build phase?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 25 Jul 2011 12:08:00 -0700

I need an Xcode 4 “Run Script” build phase to invoke a nonstandard tool (erlc). I’ve installed the tool through Homebrew, so it’s in /usr/local/bin; but other people might have used MacPorts, in which case it’d be in /opt, so I don’t want to hard-code the path. But neither of those directories is in the standard $PATH, so the script can’t find it if I don’t tell it the full path.

The root of the problem seems to be that scripts invoked by Xcode don’t read any of the usual shell configuration files (.profile, .bash_profile, .cshrc), so I don’t have an opportunity to customize their search paths. Is there any other way I can tell Xcode to customize $PATH on a per-user basis?

—Jens _______________________________________________
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: How to configure the search path of a run-script build phase?
      • From: Jean-Denis MUYS <email@hidden>
  • Prev by Date: Re: Lion and gcc/g++ command not found
  • Next by Date: Re: Unable to access Mac OS X 10.7 Core Library.
  • Previous by thread: Re: Renaming/moving /Developer?
  • Next by thread: Re: How to configure the search path of a run-script build phase?
  • Index(es):
    • Date
    • Thread