How to configure the search path of a run-script build phase?
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