Building two executables in one project

Posted by Rui Pacheco on Stack Overflow See other posts from Stack Overflow or by Rui Pacheco
Published on 2010-06-10T23:34:12Z Indexed on 2010/06/11 2:33 UTC
Read the original article Hit count: 354

Filed under:
|
|

Hi,

I've a project that must produce two executables: the main application and an executable that is called by a separate process.

I've created the second file in Xcode and added a second target of type Cocoa Shell Tool. I can now build the second executable but when I try to build my project normally I get an error saying there's two executables present:

ld: duplicate symbol _main in <path>/SecondExecutable.o and <path>/main.o

(<path> was added by me to protect the innocent and their intelectual property).

How can I configure Xcode to build both at the same time?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about xcode