Step 1: Open Terminal and type or copy and paste this command “xcode-select –install” and now Xcode Command Line Tools would be installing you will get an interface like this: xcode-select -install We will be downloading the 2GB part of Xcode rather than the entire 28GB Xcode as we only need the C and C++ compiler.įollow the below step to set up the running environment for C++ This method is useful if you have limited storage or for some other reason.
In this method, we need to use the Terminal as we need to download and install only some part of Xcode and not the entire Xcode. Way 2: Installing the Xcode Command Line Tools and using any preferred IDE