# Tutorial: Configure CLion on macOS

This tutorial will guide you through the process of installing, updating, and initial configuration of CLion on macOS.

## Installation procedures

Before you start CLion installation on macOS, make sure your machine meets the [hardware requirements](installation-guide.html#requirements-cl), and the version of your macOS is 10.9.4+.

> **Note:**
> You can always have multiple instances of CLion installed on the same OS, including both release and EAP builds.

Procedure: Manual installation and patch updates

1. Download the latest [release](https://www.jetbrains.com/clion/download/#section=mac) or [EAP](https://www.jetbrains.com/clion/nextversion/) version of CLion for macOS (earlier versions are available on the [Previous CLion Releases](https://www.jetbrains.com/clion/download/previous.html) page).

2. Open the downloaded CLion-*.dmg package and drag CLion to the Applications folder.

3. Open the Applications folder and launch the CLion installer.

4. If the security warning appears, agree to open the application:

![cl_macinstall_warning_dark.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_macinstall_warning.png)

5. When you install CLion manually, the update checking is performed automatically by default (every time the IDE is ready to update, you will see a message in the [status bar](null)). To configure the update process, go to `Settings | Appearance and Behaviour | System Settings | Updates` and select the update channel:

![cl_updatechannel_choice_dark.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_updatechannel_choice.png)

Click Check now to perform the checking right away. In case there are available updates according to the chosen channel, you will see a dialog like the following:

![cl_update_prompt_dark.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_update_prompt.png)

Procedure: Installation and update via Toolbox

Toolbox is a control panel that allows you to manage all JetBrains developer tools, including CLion, as well as your projects, from a single point of access. It enables you to maintain different versions of CLion, install updates and roll them back if needed. Toolbox remembers your JetBrains Account and uses it to automatically log in when you install and register new tools.

1. Download [Toolbox](https://www.jetbrains.com/toolbox/app/) and launch the setup file.

2. When the installation is complete, accept the JetBrains privacy policy and sign in to your JetBrains Account.

3. Now you can choose which version of CLion to install:

![Toolbox App](https://resources.jetbrains.com/help/img/idea/2026.2/cl_toolbox_app.png)

4. Toolbox shows the list of the installed versions:

![cl_toolbox_installed_dark.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_toolbox_installed.png)

5. In the Settings dialog, configure the way of updating CLion:

![cl_toolbox_update_dark.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_toolbox_update.png)

Note that in case of using Toolbox, the update process cannot be configured from within the IDE. The `Settings | Appearance and Behaviour | System Settings | Updates` dialog shows the following message:

![cl_toolbox_externalupdate_dark.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_toolbox_externalupdate.png)

> **Tip:**
> Alternatively, you can install CLion via the [Homebrew package manager](https://brew.sh/): `brew cask install clion`. However, this option is unofficial, as the CLion team is not involved in its maintenance or support.

After the installation or upgrade, you will be prompted to import, inherit, or [create new settings](run-for-the-first-time.html) for the IDE.

## Required tools

CLion needs to be provided with C and C++ compilers. These tools may be pre-installed on your system: check it in `Settings | Build, Execution, Deployment | Toolchains` - the compiler and make detection should perform successfully.

If your system does not have working installations of compilers, the simplest solution is to install Xcode command line developer tools.

Procedure:

1. Run the following command:

```CONSOLE
xcode-select --install
```

> **Note:**
> As an alternative, you can separately install the compilers and then provide the paths in `Settings | Build, Execution, Deployment | Toolchains`.

2. When prompted to install command line developer tools, click the Install button:

![cl_xcodetools.png](https://resources.jetbrains.com/help/img/idea/2026.2/cl_xcodetools.png)

You can also choose to install the full package of Xcode, though it is not necessary for CLion.

With Xcode command line tools, you get the Clang compiler installed by default. To check the compiler presence and its version, run `clang --version`.

Command line tools may not update automatically along with the system or Xcode update. This may cause error messages like invalid active developer path during project loading in CLion. To fix this, run the same `xcode-select --install` command, and the tools will be updated accordingly.

Note that you can use multiple compilers for the needs of your project, refer to [Compilers](how-to-switch-compilers-in-clion.html).

## Configure toolchains

Now you need to configure the [toolchain](how-to-create-toolchain-in-clion.html) to work with, which means choosing the CMake executable, the build tool, the C/C++ compilers, and the debugger.

Navigate to `Settings | Build, Execution, Deployment | Toolchains` and edit the default toolchain, or click ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) to add a new one.

![macOS toolchains](https://resources.jetbrains.com/help/img/idea/2026.2/cl_macos_toolchains.png)

> **Tip:**
> See [Toolchains](how-to-create-toolchain-in-clion.html) for general information.
>
>
>
>
>
> For more information about Remote Host toolchains, refer to [Remote with local sources](remote-projects-support.html#remote-toolchain). If you are working with a Docker container, refer to [Docker toolchain](docker.html).

### CMake, build tool, and compilers

In the CMake field, specify the [CMake](https://cmake.org/) binary that you want to use. You may stick to the bundled CMake, or use your custom CMake executable (see the minimum supported version in [Software requirements](installation-guide.html#requirements-cl)).

By default, CLion will use bundled Ninja as the Build Tool. You can specify another build tool of your choice, for example, make.

The chosen CMake attempts to detect the compilers considering the packages installed on your system. If detection succeeds, the C Compiler and C++ Compiler fields are filled automatically:

![Default toolchain](https://resources.jetbrains.com/help/img/idea/2026.2/cl_toolchain_detector.png)

> **Tip:**
> The detection of compilers fails when CMake cannot locate the appropriate tools. This may happen, for instance, if you installed them separately without the Xcode developer tools. In this case, you need to provide the actual paths manually.

### Debugger

CLion for macOS comes with the bundled LLDB v 21.1.7, which is the default debugger. You can also switch to a custom GDB (supported versions are 7.8.x-17.1), custom LLDB, or a [DAP debugger](dap-support.html).

Select the debugger in `Settings | Build, Execution, Deployment | Toolchains`:

![Toolchain debugger options for macOS](https://resources.jetbrains.com/help/img/idea/2026.2/cl_debuggers_switch.png)

Issues are possible when working with GDB on macOS. To improve the behavior, enable the cidr.debugger.gdb.workaround.macOS.startupWithShell option in Registry (select `Help | Find Action` from the main menu and type Registry):

> **Note:**
> A combination of GDB and Clang implies certain limitations to debugging your projects on macOS. For more information and a workaround, refer to [STL renderers for GDB on macOS](configuring-debugger-options.html#gdb-config).

![Enabling the cidr.debugger.gdb.workaround.macOS.startupWithShell registry key](https://resources.jetbrains.com/help/img/idea/2026.2/cl_gdbregisrty.png)

Note that enabling this option is not equivalent to setting `set startup-with-shell off` in your `.gdbinit` script.

## Further steps

Now that you have CLion installed and configured, you may find the following articles useful for further steps of the development:

* [Project formats supported in CLion](project-models.html)

* [Quick CMake tutorial](quick-cmake-tutorial.html)

* [Toolchains](how-to-create-toolchain-in-clion.html)

* [Compilers](how-to-switch-compilers-in-clion.html)

* [Run/Debug configurations](run-debug-configuration.html)

