XCode 3 environment variables

Hi everybody,


Working on a Mavericks with XCode 3.2.6 (for legacy reasons), I'm currently meeting a compilation issue. Years ago, I added an environment variable to the XCode source tree (in preferences). Later, I have removed it and added it somewhere else (say environment.plist).


Today, I need to change the value of this variable, so I changed it in my environment.plist. But when I now launch an XCode build, the old value of the variable is still used, instead of the new one! Just to be sure, I removed this variable from my environment.plist, and checked in a terminal this variable was not set anymore. A echo $MYVAR command prints an empty line in my terminal, so I'm sure this variable is not set.


When I launch my XCode build, I can see in the env (printed by xcodebuild) that this variable is still in use during the compilation phase, with the old value.


I tried an experiment: redeclare this var in my XCode source tree with a new value, and launch the build. The new value is used. I then remove this variable, and the new value remains present in the compilation env!


I tried looking at xcodebuild.plist, com.apple.XCode.plist and com.apple.dt.XCode.plist, where I still could find it (strangely!), but removing these references from these files didn't change anything.


So my question is: How could I get rid of this old variable? Is there somewhere else this variable could still be referenced? Where could I look for it?


And in bonus: Why this variable remains with its old value once I removed it from XCode source tree?


Thanks for any contributor.

Posted on Jul 1, 2014 5:05 AM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

XCode 3 environment variables

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.