Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

George S-T
George S-T
6,624 Points

ld: 3 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) Help?

Just on the Blog Reader project, at the Handling Malformed Data video.

I did a very small amount of experimenting with my code (as thats how you learn) but it didn't work and I was given this error then put everything back as it was (and checked) and still getting the same error. The breakpoints are not showing anything either.

Now getting this error: "ld: 3 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)"

Stone Preston
Stone Preston
42,016 Points

did you by chance import any of the project files provided by treehouse into your project in order to reverse what you had done?

1 Answer

Stone Preston
Stone Preston
42,016 Points

usually this means you have a duplicated class etc in your project somewhere. is there more to that error code? Did you accidently import a .m file instead of a .h somewhere?. Also, do you have any variables named Id in the project?. also check your build phases in your target. If there are any duplications it will throw this error so see if you have multiple items with the same name in your build phases. When I saw this error it was because I had accidently imported part of another xcode project into mine and had 2 main methods. It showed up as a duplicate in build phases and I deleted one and it worked. But there are lots of scenarios that will throw this error so it could be many things.

Stone Preston
Stone Preston
42,016 Points

what was it that was actually throwing the error out of curiosity?