Homebrew keeps complaining about my Command Line Tools after every macOS update — why does this keep coming back? Homebrew
Every few months, usually after a system update, Homebrew starts refusing to do anything useful and tells me my Command Line Tools do not support the current macOS, or that they are outdated.
I reinstall them, it works, and a few months later it happens again. That cycle has repeated maybe five times now and I would like to understand it rather than keep applying the same fix.
Also, somewhere along the way I ended up with Homebrew in two places, which I only noticed when a tool I installed was not on my PATH.
So:
- Why does a macOS update break the Command Line Tools rather than updating them?
- What is the difference between these and Xcode, and do I need both?
- How did I get two Homebrews and which one should I keep?
@rosetta_reva · 3d ago
Question 2: full Xcode contains everything the Command Line Tools do, plus the IDE, simulators and platform SDKs. You do not need both, and having both is a common source of confusion because
xcode-selectdecides which one everything uses.If it prints a path inside
Xcode.app, your builds are using Xcode's toolchain. If it prints/Library/Developer/CommandLineTools, they are using the standalone package. Either works for Homebrew; what breaks things is pointing at one that is not there any more, which happens when somebody deletes Xcode and the setting still refers to it.Unless you build iOS or Mac apps, the standalone tools are all you need and they are a fraction of the size. If you have Xcode for something else, keep it and skip the standalone package rather than maintaining two.
Reply
Report