Invalid active developer path error after upgrading to El Capitan

后端 未结 5 460
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 07:10

I ran into this error trying to push to git, when I typed git init.

xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools

5条回答
  •  -上瘾入骨i
    2021-01-31 07:26

    If you have Catalina and Xcode 11 and you have this problem, then go to Xcode Preferences and select Location tab, check that the Command Line tool dropdown has Xcode 11.0 selected. If Xcode 11 is not there then you need to download and install Command-line tools for Xcode 11 here (choose the correct Beta)

    https://developer.apple.com/download/more/?=command%20line%20tools

提交回复
热议问题