I also had this problem and it was caused by code that I imported from another project. I made grep for "int main" in my project directory:
grep -nr "int main" .
and found
./main.m:13:int main(int argc, char *argv[]) ./IMPORTED_DIR/main.m:13:int main(int argc, char *argv[])
IMPORTED_DIR contained an additional main.m which caused an error for me
I deleted this file from the project -> Goals -> Build phases -> Compile a list of sources, and then compiled
Stefan Aug 27 '12 at 12:24 2012-08-27 12:24
source share