MacOS missing xcrun问题

升级MacOS后brew upgrade经常会出现如下错误:

The bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

是因为系统升级后没有安装相应版本的Apple Command Line Tools

$ xcode-select --install

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.