Objective c 获取Apple Mach-O链接器错误-尝试构建时[如果清理项目,则无错误,但在尝试构建项目时,它再次出现!]

Objective c 获取Apple Mach-O链接器错误-尝试构建时[如果清理项目,则无错误,但在尝试构建项目时,它再次出现!],objective-c,core-data,Objective C,Core Data,使用核心数据,我试图创建一个简单的乳制品类应用程序。但当我试图编译时,我遇到了如下错误: Apple Mach-O Linker Error Linker command failed with exit code 1 (use -v to see invocation) 为了解决这个问题,我删除了所有额外的代码并清理了代码,并尝试了很多方法,通过以下链接:但仍然没有解决方案 完整错误如下所示: d /Users/me/Library/Developer/Xcode/DerivedData/

使用核心数据,我试图创建一个简单的乳制品类应用程序。但当我试图编译时,我遇到了如下错误:

Apple Mach-O Linker Error 
Linker command failed with exit code 1 (use -v to see invocation)
为了解决这个问题,我删除了所有额外的代码并清理了代码,并尝试了很多方法,通过以下链接:但仍然没有解决方案

完整错误如下所示:

d /Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Products/Debug-iphonesimulator/DiaryPlularSight.app/DiaryPlularSight normal x86_64
    cd /Users/me/Desktop/iOS/DiaryPlularSight
    export IPHONEOS_DEPLOYMENT_TARGET=8.4
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Products/Debug-iphonesimulator -F/Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Products/Debug-iphonesimulator -filelist /Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Intermediates/DiaryPlularSight.build/Debug-iphonesimulator/DiaryPlularSight.build/Objects-normal/x86_64/DiaryPlularSight.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.4 -Xlinker -dependency_info -Xlinker /Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Intermediates/DiaryPlularSight.build/Debug-iphonesimulator/DiaryPlularSight.build/Objects-normal/x86_64/DiaryPlularSight_dependency_info.dat -o /Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Products/Debug-iphonesimulator/DiaryPlularSight.app/DiaryPlularSight

duplicate symbol _DiaryEntryMoode in:
    /Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Intermediates/DiaryPlularSight.build/Debug-iphonesimulator/DiaryPlularSight.build/Objects-normal/x86_64/NewEntryViewController.o
    /Users/me/Library/Developer/Xcode/DerivedData/DiaryPlularSight-ghxpecfcxggqophakawbugnhrnic/Build/Intermediates/DiaryPlularSight.build/Debug-iphonesimulator/DiaryPlularSight.build/Objects-normal/x86_64/Diary.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
更新:刚刚添加了项目文件夹图片

在编译源代码中检查这两个文件::NewEntryViewController日记


签入构建阶段有一些.m文件添加到twicei,我试图手动解决。但我还是没有找到。是否有任何方法可以检查重复的文件。请在代码中检查这两个文件:::NewEntryViewController和Diary我从资源管理器中进行了检查,但没有重复的文件!只需查看我的项目文件夹。没有复制品!转到Windows-Projects,并点击删除项目的派生数据文件夹。然后再试一次。