Can we add C++ files into ios project? if so then what all the build settings we need to do? Is apple accepts C++ code inside ios project?
3 Answers
You don't need to do anything special. Just add the files to the project, as long as they have a .cpp or .cxx extension they will compile fine.
If you want to use C++ objects in Objective-C code you need to compile in "Objective-C++" mode, do this by naming your implementation files .mm instead of .m, then you can use C++ objcets inside your Objective-C classes and methods.
