运行模拟器时出错:架构 i386 的重复符号 [英] Error running Simulator: duplicate symbol for architecture i386

查看:26
本文介绍了运行模拟器时出错:架构 i386 的重复符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了 ShareKit 框架来尝试,这是在模拟器中运行它的错误:

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

我查看了以前的帖子 构建错误 - 缺少所需的架构 i386文件 并尝试编辑 project.pbxproj 注释 FRAMEWORK_SEARCH_PATHS 行以及查找意外添加到我的项目但没有运气的 .framework 文件.

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.

我还能尝试什么?

推荐答案

您已经在项目中包含了 LFHTTPRequest 两次.可能是另一个库(例如 sharekit)为您包含了它,请仔细检查 sharekit 包含的文件并删除 LFHTTPRequest 的一个副本,并且应该可以编译.

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.

这篇关于运行模拟器时出错:架构 i386 的重复符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆