Using C++ with Xcode
·1 min
People frequently ask on Mac development forums how to use C++ in Xcode. I have grown tired of answering this question on those forums so I’m going to provide an answer here in the hopes that someone searching on Google will stumble upon this post. Here’s the short answer to the question. Create a command-line tool project in Xcode.
If you want detailed step-by-step instructions on how to set up Xcode for learning C++, read my Creating a Command Line Application with Xcode article. The article was written for Xcode 5 so the screenshots may look a little different in Xcode 7 and 8, but the concepts still apply.