Since upgrading to Lion yesterday (10.6->10.7), I\'ve been unable to compile a project that had no problems compiling prior to the upgrade.
It\'s not even a recent
Interestingly I found that I had this scenario after installing a new version of Xcode. It was caused by Xcode running from the mounted DMG. I chased the problem around for a bit until I eventually figured out it was doing the build using the tools on the DMG rather than the files copied to Applications.
By ejecting the Xcode DMG it resolved the problem.
Thought I'd post this in case it benefits anyone else.
I suspect a number of the fixes being posted here and on other threads are working in some cases by chance of a reboot unmounting the DMG.