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.
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.m
usually under the Other Sources group.
If the function exist, also make sure that the file is included in the targets list of Compile Sources.
精彩评论