# Xcode Links: [[macOS]] ## Install [[Xcode]] and Command Line Tools Install Xcode from the [Mac App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12). Install command line tools: ```bash xcode-select --install ``` - It may prompt you to install updates via Software Update. Proceed to do so. - If Software Update doesn't display the missing packages, execute the erroring command (e.g. cargo build), then you should get a dialog asking you whether to update, which then updates the Software Update UI with the needed updates. ### `xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.` If `cargo build` is erroring with the above, look closely in the error messages and it might have some suggestions as to how to fix it: ```text Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'. ``` Running the command should do the trick: ```bash xcodebuild -runFirstLaunch ```