Invalid active developer path error after upgrading to El Capitan

后端 未结 5 450
被撕碎了的回忆
被撕碎了的回忆 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:13

    1)

    try typing in "xcode-select -print-path" and see if the path you see is the path you're expecting for your current Xcode version.

    2)

    If you go to:

    https://developer.apple.com/downloads/

    (you'll need to sign in with your Apple Developer account)

    Once there, you'll see links for "Command Line Tools". It sounds like you need to install MacOS 10.11 Command Line Tools for Xcode 7.

提交回复
热议问题