Skip to content

First Steps

Xcode

Xcode is Apple’s integrated development environment (IDE) for Swift, C, and C++, providing tools to build, test, and distribute apps across all Apple platforms.

You can install Xcode via the App Store.

Command Line Tools

The Command Line Tools package includes the Apple LLVM compiler, linker, Make, and other essential utilities for building and debugging software from the command line on macOS.

  1. Remove old Command Line Tools

    When upgrading your macOS development environment, remove old versions of the Command Line Tools to avoid conflicts.

    Run the following command in the terminal:

    Terminal window
    sudo rm -rf /Library/Developer/CommandLineTools
  2. Install the Command Line Tools

    Terminal window
    xcode-select --install
  3. Confirm installation

    When the software update popup appears, click Install and accept the Terms of Service to proceed with the installation.

    Command Line Tools

  4. Verify installation

    After installation, the Command Line Tools are located at:

    Terminal window
    /Library/Developer/CommandLineTools/

Homebrew

Homebrew is the missing package manager for macOS.

Open the terminal and run the following script:

Terminal window
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Update Homebrew

Terminal window
brew update

Search a package

Terminal window
brew search <package>

Show package info

Terminal window
brew info <package>

List outdated packages

Terminal window
brew outdated

Upgrade a package

Terminal window
brew upgrade <package>

Upgrade all packages

Terminal window
brew upgrade