Condrum
Condrum

Reputation: 63

xcode 5 ld: 11 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

When trying to build my project, I constantly get this error saying ld: 11 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) I recently tried to implement GPUImage to my project, would that have anything to do with it? Also I read similar problems but none had my solution.

Upvotes: 2

Views: 3897

Answers (3)

AITAALI_ABDERRAHMANE
AITAALI_ABDERRAHMANE

Reputation: 2519

there are another reason this error often happens is accidentally importing the .m file instead of the .h.

it's happened to me

link : https://stackoverflow.com/questions/12279622/duplicate-symbols-for-architecture-i386-clang

Upvotes: 0

Condrum
Condrum

Reputation: 63

It turns out I had implemented my .m file from another view controller and in that view controller I implemented the first view controller, so it was like a loop.

Thanks for your answer though Gabriele, it helped me to find the loop.

Upvotes: 1

Gabriele Petronella
Gabriele Petronella

Reputation: 108121

Wild guess, have you maybe imported a .m file instead of the .h anywhere?

Upvotes: 8

Related Questions