Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

After Mac updates Catalina, git prompts xcrun error what to do

Shulou Source: shulou.com Published: 2022-06-01 07:53:22 10月11日 Update

This article mainly explains the "Mac update Catalina after git tips xcrun error how to do", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "Mac update Catalina after git tips xcrun error how to do" it!

"annot Run Git

Xcrun: error: invalid active developer path (/ Library/Developer/CommandLineTools)

Missing xcrun at: / Library/Developer/CommandLineTools/usr/bin/xcrun

This is because xcode will be uninstalled after updating the system, and the command line tool (command line tools) of xcode will be missing after reinstallation, so some tools cannot be run on the terminal.

The first method:

Run the following command:

Xcode-select-install

And download the xcode command line tool.

The second method:

Cd / Library/Developer/CommandLineTools/usr/bin/

Ll | grep "xcrun"

If the result is empty, it cannot be found.

Execute:

Sudo ln-s / usr/bin/xcrun

The third method is to download the installation files on the Git official website.

Or reinstall git

Thank you for your reading, the above is the "Mac update Catalina after git prompt xcrun error how to do" the content, after the study of this article, I believe you on Mac update Catalina after git prompt xcrun error how to do this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Update what to do tips commands tools methods learning content running that is ideas situations files articles more knowledge knowledge points articles systems terminals Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Microsoft macOS MySQL