33

This knowledge post isn't a duplication of other similar ones, since it's related to 12/September/2022 Xcode update, which demands a different kind of solution

I have come to my computer today and discovered that nothing runs on my terminal Every time I have opened my IDE (VS Code or PyCharm), it has given me this message in the start of the terminal.

I saw so many solutions, which have said to uninstall pyenv and install python via brew, which was a terrible idea, because I need different python versions for different projects.

Also, people spoke a lot about symlinks, which as well did not make any sense, because everything was working until yesterday.

Furthermore, overwriting .oh-my-zsh with a new built one did not make any difference.

Zoe
  • 27,060
  • 21
  • 118
  • 148
neoswf
  • 4,730
  • 6
  • 39
  • 59
  • Stop rolling back; meta text pointing out where to find the answers when it's highlighted by the site itself isn't appropriate or necessary to include. – Zoe Sep 14 '22 at 16:52

6 Answers6

79

I was prompted to reinstall commandLine tools over and over when trying to accept the terms

I FIXED this by opening xcode and confirming the new update information

wikimind
  • 921
  • 2
  • 12
  • 1
    I did NOT need to completely uninstall xcode. I did try to reinstall commandline tools before opening xcode – wikimind Sep 13 '22 at 21:20
  • I have not received any alert on Xcode update (If I had seen this post, maybe I would open Xcode and also see it ;) ). I have reinstalled command line tools so many times, that killing everything once and for all, was the easiest solution :) lol – neoswf Sep 13 '22 at 22:19
  • 1
    The macOS update to 12.6 triggered this as well for me. Just start Xcode and select the development environments and everything works again afterwards. – Bernd Kampl Sep 19 '22 at 13:53
8

in my case I had to open Xcode after installing the update to "fix" git

Vagelis
  • 106
  • 3
5

Also solved by by running xcodebuild -runFirstLaunch after installing the command line tools

Ilan.K
  • 673
  • 14
  • 22
3

Didn't need to delete/reinstall Xcode, just installing the new Xcode update fixed this for me

1

Apple have released an update for their Xcode today. This update has broken the command line tools.

Deleting completely Xcode and command line tool and reinstalling them have solved this problem.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
neoswf
  • 4,730
  • 6
  • 39
  • 59
0

If you have 2 different Xcode versions like me (one living on documents and the other as an application on Launchpad) you need to open the one which is on the Launchpad and accept the terms, otherwise is going to keep asking for the command line tools to download every time. That fixed my issue.