Why does Homebrew change the path for the Xcode command line tools? #167
-
I just had a fresh install of macOS. I installed Xcode followed by installing Homebrew. During the installation, Homebrew went ahead and installed another set of CLT located at Now, I also do iOS & RN development and during a
I opened Xcode and went into Preferences -> Locations and noted no CLT version was selected in the dropdown. I went a head and set it to Now I noticed that this had the side effect of changing the path from Is this a problem? Does Homebrew expect it to point to Would love some clarity on the matter. 🙂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Homebrew needs the CLT and sometimes it also needs Xcode. Once you install Homebrew it pulls in the CLT and that install changes the path Xcode recognizes for the CLT. Unfortunately Apple made this difficult because the CLT Xcode provides and the CLT that macOS can install independently aren't the same. This means that on your next brew usage homebrew might complain that it can't find stuff in the CLT. |
Beta Was this translation helpful? Give feedback.
Homebrew needs the CLT and sometimes it also needs Xcode. Once you install Homebrew it pulls in the CLT and that install changes the path Xcode recognizes for the CLT. Unfortunately Apple made this difficult because the CLT Xcode provides and the CLT that macOS can install independently aren't the same.
This means that on your next brew usage homebrew might complain that it can't find stuff in the CLT.