Xcode, Duplicate symbol _main

Ah..I figure out it’s that I have multiple entries under Targets/Compiled Sources ( in newer XCode it’s under Build Phases/Compile Sources ). I removed them and the problem is solved. The multiple entry thing probably has to do with Git merge.

Leave a Comment