Hacker News new | past | comments | ask | show | jobs | submit login

Open the Xcode preferences and install the command line tools from the 'Components' part of the 'Downloads' section, although it does say this:

Before installing, 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.

Downloading this package will install copies of the core command line tools and system headers into system folders, including the LLVM compiler, linker, and build tools.




Yes, if you use the Terminal and cd to /Applications/Xcode.app/Contents/Developer, you'll see

  drwxr-xr-x   3 root  wheel  102 Jan 25 14:52 Documentation
  drwxr-xr-x   7 root  wheel  238 Jan 29 13:33 Library
  drwxr-xr-x   7 root  wheel  238 Jan 29 13:11 Makefiles
  drwxr-xr-x   5 root  wheel  170 Jan 25 14:53 Platforms
  drwxr-xr-x   3 root  wheel  102 Jan 25 14:54 Toolchains
  drwxr-xr-x  22 root  wheel  748 Jan 29 13:12 Tools
  drwxr-xr-x   7 root  wheel  238 Jan 25 14:54 usr
Inside ./usr/bin is gcc, git, etc.

Basically the developer tools used to live by default in /Developer at the root of the filesystem, now the Developer directory is inside Xcode.


And if you install the command line tools they live in /usr/bin.


Thanks, that was a real RTFM moment.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: