I created a new cocoa application in Xcode with 3 * .m files (main.m, AppDelegate.m and projectnameTests.m). To use object-cpp, I renamed 3 * .m files to * .mm files.
Then I get the following error from Xcode:
"Undefined for x86_64 architecture:" _NSApplicationMain "referenced: _main in main.o ld: character (s) not found for x86_64 architecture clang: error: linker command failed with exit code 1 (use -v to call )
I have never processed .o files, so I don’t know what happened. Please, help.
PS: I am using the latest Xcode version (6.1.1).
AppKit.framework " " " " , .
P.S. , XCode (, AppKit.framework) .m, .mm, AppKit.framework , NSApplicationMain AppKit. Cocoa.framework , , - , XCode AppKit.framework.