objective c - Xcode 4 - clang: error: linker command failed with exit code 1 (use -v to see invocation) -
i keep getting following error when trying build project. did google search , found folks had same name variables between classes and/or forgot include/had multiple inclusions of classes in linker, not case me.
please see below picture:
as says in error can't find main
function. in ios project function comes template , looks this:
int main(int argc, char *argv[]) { @autoreleasepool { return uiapplicationmain(argc, argv, nil, nsstringfromclass([appdelegate class])); } }
it needed because main
function entrance point every c, c++ , objective-c program. located in file called main.m
in supporting files group (which doesn't mean you're not allowed move elsewhere).
to fix error, if file/the function exists. if do, open utilities pane (the right one), go first tab , if checkbox of target selected.
Comments
Post a Comment