Re: How to configure the search path of a run-script build phase?
Re: How to configure the search path of a run-script build phase?
- Subject: Re: How to configure the search path of a run-script build phase?
- From: Jean-Denis MUYS <email@hidden>
- Date: Thu, 28 Jul 2011 12:32:53 +0000
- Thread-topic: How to configure the search path of a run-script build phase?
Le 25 juil. 2011 à 21:20, "Jens Alfke" <email@hidden> a écrit :
> 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
Yes. You can set your path in ~/.MacOSX/environment.plist
Of course you need to log out and log back in after you create/change that file.
I use it to put Lion's MacRuby private framework binaries in Xcode's path.
Jean-Denis _______________________________________________
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