I had serious problems from two versions of Xcode on the same machine. I removed all Xcode app instances & 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?
MacOS – how to reinstall xcode command-line tools
command linemacosxcode
Best Answer
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Problem fixed on my side