• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Defining App Run-time Environment Variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: external declares
  • Next by Date: Re: Release build won't run
  • Previous by thread: Fwd: external declares
  • Next by thread: What's happened to included headers in Movies.h?
  • Index(es):
    • Date
    • Thread