Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Diary App Using Core Data Inserting and Saving Data UI for Inserting Diary Entries

Alexandre Serra Jaumot
Alexandre Serra Jaumot
6,977 Points

Building Diary App Usig Core Data - ld: 1 duplicate symbol for architecture x86_64

ld: 1 duplicate symbol for architecture x86_64Ld /Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Products/Debug-iphonesimulator/17\ Diary.app/17\ Diary normal x86_64 cd "/Users/ASJ/Developer/01 Objective C/17 Diary" export IPHONEOS_DEPLOYMENT_TARGET=7.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneSimulator9.2.sdk -L/Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Products/Debug-iphonesimulator -F/Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Products/Debug-iphonesimulator -filelist /Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Intermediates/17\ Diary.build/Debug-iphonesimulator/17\ Diary.build/Objects-normal/x86_64/17\ Diary.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Intermediates/17\ Diary.build/Debug-iphonesimulator/17\ Diary.build/Objects-normal/x86_64/17\ Diary_dependency_info.dat -o /Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Products/Debug-iphonesimulator/17\ Diary.app/17\ Diary

duplicate symbol _DiaryEntryMood in: /Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Intermediates/17 Diary.build/Debug-iphonesimulator/17 Diary.build/Objects-normal/x86_64/DiaryEntry.o /Users/ASJ/Library/Developer/Xcode/DerivedData/17_Diary-hdsjaerfjohuxbdnvilrgpjnwwkl/Build/Intermediates/17 Diary.build/Debug-iphonesimulator/17 Diary.build/Objects-normal/x86_64/DiaryEntry+CoreDataProperties.o ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)