Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Error Xcode!!! Help!!

So I got an error that says '766 duplicate symbols for architecture x86_64'

How can I fix this error?

2 Answers

Hmmm ... tricky one, then.

There's a raft of Stack Overflow posts about your current issue too. The general consensus is that there's a duplicate import statement, or you may have a linker flag set to -ObjC - that should be deleted, apparently.

Without being able to replicate the issue or see your code (sounds like there's loads of it!!) it is hard for me to suggest best steps. If you can spend 5 minutes getting your project into a Github repo, that would help. I can then find a fix.

That looks as though you've included or imported something more than once.

Do you use Github? Share the link to the repo and we can have a look for you.

Steve.

it says

/Users/home/Downloads/Anypic-master-2/Anypic-iOS/Pods/Parse/libParseLib.a(PFPurchase.o)

/Users/home/Downloads/Anypic-master-2/Anypic-iOS/Parse.framework/Parse(PFPurchase.o)

& no not really... I mean I do, but I don't upload any repositories.

Steve Hunter

OK - a few questions.

What says that? What is your application called? (I need to understand the path shown) When is this error appearing? Build time or runtime? Is Parse working OK? What language are you using? Are there any duplicate import statements in any file?

Sorry not to be much help, but I'm not clear on what's happening here.

  1. I just downloaded Anypic repository from Parse on Github. I never use large repositories like this before so I am a little confused. I used cocoa pods, & signed up for Parse, & created a new app. When I went to go copy and paste the Parse keys into the app delegate files I went to go run the app & it said 'Directory not found for -F/....' I looked on stack overflow and they suggested to delete framework search paths... When that didn't work I decided to undo that delete which made me run into this error:

'766 duplicate symbols for architecture x86_64'

 'Users/moveon/Downloads/Anypic-master-2/Anypic-iOS/Pods/Parse/libParseLib.a(PFPurchase.o)'

'Users/moveon/Downloads/Anypic-master-2/Anypic-iOS/Parse.framework/Parse(PFPurchase.o)'

Steve Hunter