how to reinstall xcode command-line tools? I had serious problems from two versions of Xcode on the same machine. I removed all Xcode app instances &amp; many other non-System 'xcode'-related files, then reinstalled the app (4.6.2), fixing my original problem. But xcodebuild and xcode-select are still not available, which I need to run PhoneGap for iOS.  Within Xcode, the Preferences => Downloads => Command-line Tools item is marked "Installed", with no option to delete or re-install. I tried removing xcrun, but that didn't work. How do I fix this?
I run 
sudo rm -rf /Library/Developer/CommandLineTools
and then xcode-select --install


Problem fixed on my side