Invalid active developer path error after upgrading to El Capitan

后端 未结 5 459
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 07:21

    Try:

    sudo xcode-select -r

    in this way it unsets any user-specified developer directory, so that the developer directory will be found via the default search mechanism.

提交回复
热议问题