On the next screen, choose C or C++ instead of Objective-C or Swift from the drop down to pick your language. You’re also invited to give your project a title and a location where you’d like it to live on your hard drive, and if you’d like to setup a local git repo for it. On older versions of Xcode the grouping at the top was a little different, and the template may have been called Command Line Utility, but the principles were exactly the same.
Under the macOS tab, find the Command Line Tool and hit next. Start a new one under File – New Project. Let’s see how to use Xcode 8.3 for C and C++ development.Ī Chinese Version of this article can be found here.Įven the shortest programmes you’ll ever write with Xcode are a project. This includes all the features we know and love, such as code completion, version control, and all the rest of it. Not only is Xcode an excellent IDE for iOS and macOS apps in both Swift and Objective-C it does just as fine a job for regular C and C++ code.