How to install Xcode Command Line Tools

后端 未结 13 1918
無奈伤痛
無奈伤痛 2020-11-22 01:08

How do I get the command-line build tools installed with the current Xcode/Mac OS X v10.8 (Mountain Lion) or later?

Unlike Xcode there is no installer, it\'s just a

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 01:24

    If you want to use the version of tools provided in XCode itself you can use xcrun (e.g. xcrun git). From the help at the bottom of the download preference pane:

    note that from within Terminal you can use the XCRUN tool to launch compilers and other tools embedded within the Xcode application. Use the XCODE-SELECT tool to define which version of Xcode is active. Type "man xcrun" from within Terminal to find out more.

提交回复
热议问题