天天看點

Mac神器-Command Line Tool

  • Xcode

    是運作在作業系統

    Mac OS X

    上用于開發

    macOS

    iOS

    應用程式的內建開發工具(

    IDE

  • Xcode

    同時也是一種語言,作為一種基于

    XML

    的語言

1、安裝Xcode

  • 指令行執行
    xcode-select --install
               
  • 出現錯誤
    xcode-select: error: command line tools are already installed, use "Software Update" to install updates
               
  • 解決辦法:
    rm -rf /Library/Developer/CommandLineTools
    xcode-select --install
               
  • 如果還是報錯,加上sudo
    sudo  rm -rf /Library/Developer/CommandLineTools
    sudo  xcode-select --install
               
  • 彈出安裝界面,直接安裝
    Mac神器-Command Line Tool