プログラムで「linker command failed with exit code 1 (use -v to see invocation)」というエラーが発生しました。どうすればよいかわかりません。はい、他にも質問があることは知っています。それらを読み、さまざまな解決策を試しましたが、問題は異なると思います。デスクトップに保存されているプロジェクト ファイルとライブラリ/開発者のプロジェクト ファイルの両方をチェックしましたが、重複するクラスは見つかりませんでした。
必要に応じてコードを提供することもできますが、その必要がないことを願っています。ありがとう!:D
完全なエラー レポート: Ld /Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Products/Debug/ProjAllele normal x86_64 cd /Users/ethen/Desktop/ProjAllele setenv MACOSX_DEPLOYMENT_TARGET 10.8 /Applications/Xcode.app/ Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users /ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Products/Debug -F/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Products/Debug -filelist /Users/ethen /Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/ProjAllele.LinkFileList -mmacosx-version-min=10.8 -fobjc-arc -fobjc-link-runtime -framework Foundation -o /Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb /ビルド/製品/デバッグ/ProjAllele
duplicate symbol _OBJC_METACLASS_$_Organism in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Organism.o
duplicate symbol _OBJC_CLASS_$_Organism in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Organism.o
duplicate symbol _OBJC_METACLASS_$_Organism in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Pea.o
duplicate symbol _OBJC_CLASS_$_Organism in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Pea.o
duplicate symbol _OBJC_METACLASS_$_Plant in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Pea.o
duplicate symbol _OBJC_CLASS_$_Plant in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Pea.o
duplicate symbol _OBJC_METACLASS_$_Organism in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Plant.o
duplicate symbol _OBJC_CLASS_$_Organism in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Plant.o
duplicate symbol _OBJC_METACLASS_$_Plant in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Plant.o
duplicate symbol _OBJC_CLASS_$_Plant in:
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/main.o
/Users/ethen/Library/Developer/Xcode/DerivedData/ProjAllele-asuihysyexvjvmdsgfladthghavb/Build/Intermediates/ProjAllele.build/Debug/ProjAllele.build/Objects-normal/x86_64/Plant.o
ld: 10 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)