O Linker Error on Xcode 4.6

I have an iOS app on Xcode 4.6 and when I recently tried to build and run in the iPhone 6.1 simulator I got a "Mach-O Linker Error." It continued to say:

ld: 17 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does anyone know how to solve this?

Thanks so much!


只需进入“构建阶段” - >“编译源代码”并查找类的重复。


Check if you have "*.m" files in your #import ! It appears that was my mistake...


In my example, I declared

extern NSString const *keyString

in two different files. I renamed one of them and it solved my problem.

链接地址: http://www.djcxy.com/p/64608.html

上一篇: 创建类别时PSPDFKit链接器错误

下一篇: O X链接器错误4.6