MacOS – Disable Xcode Command Line Tools

command linemacosxcode

I changed the Command Line Tools in Xcode settings, hoping it would solve an error with arm64e, but xcodebuild ended up taking over make command which makes the compiling process slower with my Theos project.

Xcode does not allow me to revert changes of Command Line Tools, is there other way to revert the change? I don't want xcodebuild to run when using make

enter image description here

I readed every solutions I found online but nothing helps, tried reinstalled Xcode, xcodebuild still present with make in Terminal

Best Answer

  • Quit Xcode
  • Open a Finder window showing your Xcode program
  • Open a command line prompt (terminal.app is fine)
  • Type xcode-select --switch
  • Drag the Xcode program icon you want to be default into the command line window and release the icon
  • Press enter

The select tool lets you have multiple versions of the tools and switch back and forth or even request an install from Apple of the tools without having Xcode.app installed. If this process fails, your Xcode preferences are corrupted, so you’d uninstall the app or make a new user profile to validate whether the app preferences or user preferences need to be trashed or fixed.