Error running Simulator: duplicate symbol for architecture i386

Vad picture Vad · Mar 13, 2012 · Viewed 12.7k times · Source

I added ShareKit framework to try and here is the error running it in Simulator:

duplicate symbol _LFHRReadStreamClientCallBack in 
.../Xcode/DerivedData/....build/Objects-normal/i386/LFHTTPRequest-8C6F35228BA446B9.o 
and 
.../Xcode/DerivedData/....build/Objects-normal/i386/LFHTTPRequest-8ACF920D803FDCA6.o 
for architecture i386

I looked at previous posts Build Error - missing required architecture i386 in file and tried to edit project.pbxproj commenting FRAMEWORK_SEARCH_PATHS lines out as well as looking for .framework files accidently added to my project but with no luck.

What else can I try?

Answer

Nick picture Nick · Mar 14, 2012

You've included LFHTTPRequest in your project twice. It's possible that another library (such as sharekit) included it for you, doublecheck the files sharekit includes and remove one copy of LFHTTPRequest and things should compile.