Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET

前端 未结 4 776
一个人的身影
一个人的身影 2020-12-16 14:00

I assume due to the fact Big Sur is sparkling new hotfixes for the new OS have not yet happen. When attempting to install modules that use clang for compilation

4条回答
  •  眼角桃花
    2020-12-16 14:10

    I would like to extend @Felipe excellent answer; if it doesn't work even with running

    >>> softwareupdate --all --install --force
    Software Update Tool
    
    Finding available software
    No updates are available.
    

    ...following the wisdom of the "homebrew doctor" solves it, i.e. remove and reinstall:

    sudo rm -rf /Library/Developer/CommandLineTools
    sudo xcode-select --install
    

提交回复
热议问题