JonStraw
JonStraw

Reputation: 21

Apple Match-O linker error: "_Main", Referance from;

Newbie Here

I was cleaning up some of my code by deleting and moving around excess code that I had been playing around with, and then I got the above error and I have no clue what went wronge or how to fix it. I was not trying to do anything really special with my app, just a few buttons, a Table View, navigation controller, and an MFMailComposeViewController.

P.S. Thanks for the help. Any leads, tips, tricks, cheats, and just plain advise is welcome.

Upvotes: 2

Views: 3033

Answers (1)

PeyloW
PeyloW

Reputation: 36752

Search your project and verify that you have a global function satisfying this method signature:

int main(int argc, char *argv[])

Xcode template project will add this method in a file named main.musually under the Other Sources group.

If the function exist, also make sure that the file is included in the targets list of Compile Sources.

Upvotes: 8

Related Questions