Error: ld: 1 duplicate symbol for architecture armv7

匿名 (未验证) 提交于 2019-12-03 02:38:01

问题:

I have looked everywhere and cannot find the solution to this problem. I have tried renaming the .h/.m files deleting them and creating them again as well as seeing if the problem is with the files not being in the compile sources in the project manager.

This is the error:

Ld /Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Products/Debug-iphoneos/Markschemes.app/Markschemes normal armv7 cd "/Users/mabdelhamid/Desktop/Application Backup/MarkSchemes 14:08" setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Products/Debug-iphoneos -F/Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Products/Debug-iphoneos -filelist /Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Intermediates/Markschemes.build/Debug-iphoneos/Markschemes.build/Objects-normal/armv7/Markschemes.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.1 -framework MessageUI -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Products/Debug-iphoneos/Markschemes.app/Markschemes  duplicate symbol _penaltyCriteria in: /Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Intermediates/Markschemes.build/Debug-iphoneos/Markschemes.build/Objects-normal/armv7/MHTFrontViewController.o /Users/mabdelhamid/Library/Developer/Xcode/DerivedData/Markschemes-dksalheponzwnocllyohgwmotxho/Build/Intermediates/Markschemes.build/Debug-iphoneos/Markschemes.build/Objects-normal/armv7/MedIFrontViewController.o ld: 1 duplicate symbol for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Please someone help me figure this out.

If I select either .m file and uncheck the target membership from the file inspector in the utilities area the error disappears but my class is then unusable.

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