views:

840

answers:

2

When I build in Xcode, any errors or warnings are being duplicated. So in the IDE, I get twice the number near the icons in the status bar, and where the yellow or red bubbles show up in the editor, there are two warning lines (or error lines) below the line where the warning (or error) occurred. Anyone else have this problem, or know how to fix it?

+7  A: 

Are you doing a release build? If so, it may be hitting the errors once while doing the PPC build, and again for the intel build.

Ben Gottlieb
Exactly this. My current project builds for 4 different architectures, so all of my error counts are multiplied by four.
e.James
Turns out the same thing happens when building a universal iPhone/iPad app.
Shaun Inman
+3  A: 

When GCC is run with multiple -arch flags, it will produce a warning and/or error for each architecture because the compiler is essentially being run multiple times.

If you have set your project to be a Universal app containing both PPC and i386 binaries then you will get two errors/warnings, provided that the error/warning applies to both architectures.

dreamlax