I\'m getting this error...any idea how to solve it?
GenerateDSYMFile /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Bui
I might be a lil' late to this party, but same problem, solved it by going to Product > Scheme > Manage Schemes... Then simply delete current scheme and recreate a new one then try building again.
This is a good way of resetting any compilation settings you might have inadvertently changed.
I had accidentally added the same source files to my Project in Xcode twice (a header and an implementation file. Look for clues in the error message as to which files might be duplicates.
Deleting the duplicate copy (Remove References, not Move to Trash) solved my issue.
In my case I had accidentally #imported the implementation file of a class instead of the header file (#import "MyClass.m" instead of #import "MyClass.h"). Unfortunately the error message for this innocent mistake is the opposite of helpful.
I solved this by deleting the path specified in both Header Search Paths and Library Search Paths, found under Targets - Build Settings - Search Paths. The application now builds and runs cleanly on the iOS simulator.
I do not yet have real-device testing capability, so we'll see what happens when I get to that point.
I was getting the same error dialog. It turns out I had two consts of the same name declared in different files and the compile was failing with no meaningful error output, only this problem. After doing the DWARF thing discussed here I was able to get better error output that helped me find the problem
In my case, I was trying to compile external library into my code and some of test c files in this library was added on "Compile Sources" on "Build Phases" tab. These files also had main() function which was causing it show "duplicate symbol" message. Once I removed these files from Compile Sources, project compiled successfully.