2

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.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Condrum
  • 63
  • 2
  • 11

3 Answers3

8

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

Gabriele Petronella
  • 106,943
  • 21
  • 217
  • 235
1

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.

Condrum
  • 63
  • 2
  • 11
0

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

Community
  • 1
  • 1
AITAALI_ABDERRAHMANE
  • 2,499
  • 1
  • 26
  • 31