Passing environment variables automatically into XCode
I'm trying to develop a command line tool in OS X that I had from Linux.
Everything goes well into compiling but I can't run it inside Xcode cause it can't find some libraries.
This app relies heavily in library paths and variable sets that I have already in my bashrc to be set automatically whenever I open a terminal window (they are too many to just put by hand one by one in XCode, and I also have to run an .sh program to set some more variables).
So I would like to know if there is some way of just open Xcode from a terminal window with those environment variables and have them passed to Xcode?
I should add that the app compiles perfectly (it also needs some environment variable set for that so, at least for the compilation part XCode seems to be getting my var sets and library paths from the command line), it's when I try to run it automatically inside Xcode that it complains about missing libraries. I also can run it correctly if I do it from the command line.
One last thing to add, is that in NetBeans this works, i.e. if I open NetBeans IDE from the command line then it "knows" all the environment variables I had set. In Eclipse it doesn't work.
But I want to develop this in XCode since Netbeans crashes a lot in OS X.
MacBook Intel, Mac OS X (10.5.5)
