ios - What does this error in Xcode mean? -


when build app randomly gives me error:

ld: entry point (_main) undefined. architecture arm64 clang: error: linker command failed exit code 1 (use -v see invocation)

i don't know how explain because have no idea means , have no idea can coming from.

here github link: https://github.com/nneeranjun/map-exercise.git

you're missing main.m file, created automatically when start new project in xcode.

for typical generic cocoa touch application, looks this:

#import <uikit/uikit.h> #import "appdelegate.h"  int main(int argc, char * argv[]) {   @autoreleasepool {     return uiapplicationmain(argc, argv, nil, nsstringfromclass([appdelegate class]));   } } 

after you've created file, add project (file menu, "add files "project name").

once have added file project, need make sure it's included in target. select file in project navigator, , go view menu , select utilities->show file inspector show file inspector. check "target membership" setting, , make sure file included in target application.