I am using xcode first time. I have tried to execute c program but after running the program the buid gets failed it shows the following error message
duplicate symbol '_main' in:
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
That is suggesting you have two `main`s in main.c and test.c. Check your source code.