It's brew's bad to not use the already existing Xcode CLTs. You can manually change this path by xcode-select -s If you delete Xcode, it should output: /Library/Developer/ If you have Xcode, the Xcode's CLTs should be used. Running xcode-select -p outputs the following, as many people have already noted: /Applications/Xcode.app/Contents/Developer Ideally homebrew should use xcrun to find them and use whichever available. Not exactly "xcode" command line tools, but two CLTs, yes. If Xcode already installed command line tools, then what location did the downloaded pkg file from Apple developer install the command line tools too? /Library/Developer/CommandLineToolsĭid this leave me with 2 versions of the xcode command line tools on my system? What's the use of having Xcode install the xcode command line tools when opening, if we have to re-install them from pkg anyway to get command line programs to read it? What did the additional pkg installation do on my computer? Applications/Xcode.app/Contents/DeveloperĪdditionally which -a xcode-select also only returns /usr/bin/xcode-select. Running xcode-select -p outputs the following, as many people have already noted: Question: if Xcode already installed command line tools, then what location did the downloaded pkg file from Apple developer install the command line tools too? Did this leave me with 2 versions of the xcode command line tools on my system? The gui installer finished with no errors. ![]() So I downloaded the pkg file from Apple Developer and reinstalled the command line tools with that pkg file as the command line install xcode-select -install didn't work. However, as documented NUMEROUS times on stack overflow, Homebrew was not recognizing my xcode command line tools (CLT: N/A). In my Xcode preferences, in the locations section, command line tools read Xcode 12.0 (12A7209) and below it the path /Applications/Xcode.app. ![]() Initially I installed the xcode command line tools by prompt when opening Xcode. I just think Apple does not care about small Developers.I have Xcode installed on my computer. Ps Just to be clear, i appreciate the community for finding and publishing the solution. Solution found, but Apple's solution is not appreciated. I have already transitioned myself to a linux box, and i'm seriously thinking of moving my clients with me. I really don't like Apple's way of using our machines the way THEY want, not the way we want. If i wanted a package that big i would install the whole Xcode package and just hope that the client doesn't do anything destructive by mistake. dmg is ~435MB, and the installer used >2.4GB disk space! What?! I only want the CLT. ![]() i went to the Apple Developer site and downloaded the CLT and now brew works again.īut, here's the thing. Whatever my fooling around was before i am failing to "just do it". I enter: xcode-select -install, press install, agree to the agreement, it downloads, installs, gives me a nice The software was installed but if I try any command again (like brew update or brew upgrade ) I get the same error. Except installing it seems to not work/have no effect. Now i'm trying to get brew to work on another Catalina machine. Seems pretty straight forward, Xcode Command Line Tools missing. I thought, "this will never happen again" because i didn't realize it was a widespread phenomenon, and forgot about it. Eventually, i have no idea what i did, CLT was installed. I had this problem on another Catalina machine, about a month ago, and i went back and forth between "xcode-select -install" and deletions. This is extraordinary - not in a good way!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |