Defining App Run-time Environment Variables
Defining App Run-time Environment Variables
- Subject: Defining App Run-time Environment Variables
- From: Michael Rice <email@hidden>
- Date: Fri, 10 Feb 2006 22:06:19 -0600
My basic problem is that I need to define DYLD_LIBRARY_PATH for my
application. I know I can use the "Get Info" on the executable and
set the environment variables on the Arguments pane. But those get
written into the pbxuser file in the project bundle. The problem is
that I use an external tool (Qt qmake) to generate the project. When
Xcode opens my new qmake-generated project, it overwrites the pbxuser
file. I think I understand why it does this, so I'm trying to figure
out a workaround.
I don't want to define it "globally" (e.g., in my .profile or
in .MacOSX/environment.plist) because I work on several projects,
each using different builds of libraries with the same name.
Does anyone know if this can be done? My thoughts are:
1. Is there a way to use the .xcconfig file to define environment
variables? If so, how? I tried several things, but couldn't get it to
work.
2. Can the project.pbxproj file contain the environment variable
definitions? If so, what "isa" section should the
"environmentEntries" be in? I could possibly modify qmake, so when
it generates a project the environment variables would be in it.
Thanks.
Michael
_______________________________________________
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