Peter Lapisu
Peter Lapisu

Reputation: 20975

Xcode converting project from C++ to Objective-C++

how to convert a Xcode C++ project to an Xcode Objective-C++ project, because now it doesn't threat ".mm" files like Objective-C++ files, but as C++ files generating lots of errors:) also cannot use the ObjC++ goodies

Upvotes: 2

Views: 3022

Answers (2)

RawMean
RawMean

Reputation: 8735

I think this is what you should do: enter image description here

Upvotes: 2

Georg Fritzsche
Georg Fritzsche

Reputation: 98984

Check in the project configuration under Build that "Compile Sources as" is set to "According to file type.

Alternatively, to change what a file is compiled as: select it, "Get Info", change the file type to e.g. sourcecode.cpp.objcpp for ObjC++.

Upvotes: 1

Related Questions