Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate Symbol Error for architecture i386

I got this error when i tried to build:

"duplicate symbol __Z8ERRCHECK11FMOD_RESULT in:

/Users/codemenmini2012-2/Library/Developer/Xcode/DerivedData/MagicSleepFullVersion-agxulkdijnxbqmbuigucmrczufyw/Build/Intermediates/MagicSleepFullVersion.build/Debug-iphonesimulator/MagicSleepFullVersion.build/Objects-normal/i386/MagicSleepViewController.o

/Users/codemenmini2012-2/Library/Developer/Xcode/DerivedData/MagicSleepFullVersion-agxulkdijnxbqmbuigucmrczufyw/Build/Intermediates/MagicSleepFullVersion.build/Debug-iphonesimulator/MagicSleepFullVersion.build/Objects-normal/i386/MagicSleepViewControllerIpad.o

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

How to solve this guys?

like image 817
John Avatar asked Nov 27 '22 04:11

John


1 Answers

The error may occur when you copy and paste the contents of one file to another file with its interface name which means two classes with same interface name.

In your code you have two different files with the same Interface name.

like image 90
Ravindra Bagale Avatar answered Dec 15 '22 21:12

Ravindra Bagale