i found the problem, i had already a file in the same project which have main
Code:
#include <stdio.h>
int main (int argc, const char * argv[]) {
// insert code here...
printf("Hello, World!\n");
return 0;
}
here is the complete error:
Line Location Tool:0: duplicate symbol _main in /Users/fahad/Documents/test/build/test.build/Debug/test.build/Objects-normal/i386/goodbye.o and /Users/fahad/Documents/test/build/test.build/Debug/test.build/Objects-normal/i386/main.o
when i made a new project the 1st code worked why is xcode doing this
😕