If you are just trying to write C++ code in Xcode instead of calling C++ libraries in your objectiveC project you can create a C++ project. I just created a new project using the "Command Line Tool" template and selected C++ as the language.
I could then add the following lines without the compiler complaining.
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
To use items from the std c++ libraries you prefix them with std::
int main (int argc, const char * argv[])
{
std::cout << "Hello World!";
return 0;
}
I was actually searching stack overflow for the reason std:: is necessary in Xcode...