问题
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.
回答1:
Wild guess, have you maybe imported a .m
file instead of the .h
anywhere?
回答2:
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.
回答3:
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
来源:https://stackoverflow.com/questions/19553067/xcode-5-ld-11-duplicate-symbols-for-architecture-armv7-clang-error-linker-com