On my Mac OS 10.9.3, I have a C++ XCode 3 project on which, I don't know where, an environment variable is set (say MYVAR). I can see it when I launch a build in a command line using xcodebuild from my terminal, in the output:
...
setenv MYVAR "My Value"
...
This variable is absolutely unset from all my global environment variables of my OS (.bashprofile, .profile, launchd.conf, profile, .bashrc, etc.) . When I type
echo $MYVAR
in a terminal, it displays an empty result.
So, where can be this variable defined? I searched in Source tree variables, in my pbxproj file, in all my xcconfig.