Using BASH environment variables in xCode build configuration

Hi All,

Is it possible to use BASH environment variables (exported from /etc/profile, for example) in xcode build settings?

Specifically, I am exporting a "BOOST_HOME" variable, and would like to referencing this variable in "User Header Search Path", but the obvious $BOOST_HOME doesn't seem to work?

Thanks,
Andrew

MacBook Pro, Mac OS X (10.4.10)

Posted on Aug 26, 2007 6:53 AM

Reply
3 replies

Aug 26, 2007 7:27 AM in response to andrewc

I don't know much about XCode -- but to set environment variables for GUI applications you need to edit ~/.MacOSX/environment.plist. There's a description here:
http://wiki.lyx.org/Mac/Environment

After editing that file I believe you have to logout and back in for the changes to take effect.

I swear I saw a GUI app to help edit that file, but I can't find it now...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using BASH environment variables in xCode build configuration

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.