The error message says you have two main functions in your project. You can have only one.
When you create the project, Xcode includes a main.cpp file that has a main function. If you add a second main function, you are going to get an error. Remove one of the two main functions. If you added your own C++ file to the project, delete the main.cpp function Xcode included with the project.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: