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

半腔热情 提交于 2020-01-24 18:03:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!