0

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.

Rémi Doolaeghe
  • 2,262
  • 3
  • 31
  • 50

1 Answers1

0

I found the answer. I have detailed it in this thread.

In a few words, the variables remained present in three different preferences files:

codebuild.plist
com.apple.XCode.plist
com.apple.dt.XCode.plist

They can be found in your /Library/Preferences.

After restarting my computer, the variable has disappeared.

Rémi Doolaeghe
  • 2,262
  • 3
  • 31
  • 50