An application I'm working on doesn't get along well when the environment variables DYLD_FRAMEWORK_PATH and DYLD_LIBRARY_PATH are set but I can't figure out for the life of me where these are being set!
To rule out the possibility that it's something project specific, I've created a new project without any files and added a single new executable (targeting TextEdit) with the 'Start executable after starting debugger' option unchecked in the executable's info dialog. This allows be to get into gdb from Xcode, where a 'show env' can then be done. Among the variables returned are:
DYLD_LIBRARY_PATH=/Users/[mynamewashere]/Documents/Empty/build/Debug
DYLD_FRAMEWORK_PATH=/Users/[mynamewashere]/Documents/Empty/build/Debug
When I load the same program into gdb from the terminal, these variables are not present, leading me to think that this might be something Xcode is setting before it starts an executable.
Does anyone know where these variables might have been set, and how I can clear them before running my project?
Thanks for your help,
Jake