How to Install code::Blocks on a MacBook Air M1, M2 or any Macbook

To install Code::Blocks on a MacBook Air M1, you can follow these steps:

  1. Download Code::Blocks:
    • Go to the official Code::Blocks website (
    • Click on “Download the binary release” to access the download page.
    • Scroll down to the macOS section and click on the “” link to download the latest stable release.
  2. Extract the downloaded ZIP file:
    • Locate the downloaded ZIP file in your Downloads folder.
    • Double-click on the ZIP file to extract its contents. This will create a folder named “code blocks-xx. xx-mac” (where “xx. xx” represents the version number).
  3. Move Code::Blocks to the Applications folder:
    • Open a new Finder window and navigate to the extracted “code blocks-xx. xx-mac” folder.
    • Drag the “code blocks” application icon to the Applications folder in the sidebar of the Finder window.
  4. Grant permission to run the application:
    • Open the Applications folder and locate the “code blocks” application.
    • Right-click (or Control-click) on the “code blocks” application icon and select “Open” from the context menu.
    • A warning prompt will appear stating that the application is from an unidentified developer. Click on “Open” to grant permission to run the application.
  5. Launch Code::Blocks:
    • Once the application is open, you can start using Code::Blocks to write and compile your C/C++ programs on your MacBook Air M1.

Note: Code::Blocks is not officially optimized for Apple Silicon (M1) processors at the time of writing this response. It may run under Rosetta 2 translation on M1 devices. Alternatively, you can consider using other IDEs that offer native support for M1 processors, such as Xcode or Visual Studio Code with the C/C++ extension.

Leave a Comment