Xcode 7.1 环信sdk集成问题

在Xcode 7.1中集成EaseMobSDK和EaseUI,开始按照教程集成EaseMobSDK能够成功运行,接下来集成EaseUI时遇到问题:
ld: 64 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
linker的设置为 -force_load ...SDKLite.a,如果改成SDK.a会报错:
Undefined symbols for architecture x86_64:
  "webrtc::FIRFilterSSE2::FIRFilterSSE2(float const*, unsigned long, unsigned long)", referenced from:
      webrtc::FIRFilter::Create(float const*, unsigned long, unsigned long) in libEaseMobClientSDK.a(fir_filter.o)
ld: symbol(s) not found for architecture x86_64
 
如果改成-ObjC,则会报错:
Undefined symbols for architecture x86_64:
  "_ACAccountTypeIdentifierTwitter", referenced from:
      -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_ACAccountStore", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_SKPayment", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SKPaymentQueue", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SKProductsRequest", referenced from:
      objc-class-ref in Parse(PFPurchase.o)
  "_OBJC_CLASS_$_SLComposeViewController", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_SLRequest", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_SLServiceTypeTwitter", referenced from:
      -[PF_Twitter getAccessTokenForReverseAuthAsync:localTwitterAccount:] in Parse(PF_Twitter.o)
      -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
项目结构请看附件,导入的为demo3.0中的相关文件,并且项目不包括其他的第三方库。
现在不知道怎么解决了,所以来求助一下,谢谢大家!
共3个回复

环信沈冲

2015-11-16 12:33

1、lib文件夹中lite.a包删掉,other link flags改为-ObjC;导入parse、social、accounts、bolts这几个库; 2、有ld: 64 duplicate symbols for architecture x86_64报错的,找到报错详情最后有提示哪个类冲突,将项目中冲突的类删掉一个; 3、如还有报错,请联系右下角技术咨询,或官网左下角在线技术支持。

jackpanda

2016-05-08 22:40

第一条解决了我的问题,万分感谢。

倚枕不寻柯下梦丶

2016-07-13 16:38

你好。 lib 的lite.a 我怎么找不到啊?

jackpanda

2016-05-08 22:15

楼主我也遇到同样的问题了,毫无头绪,你的问题解决了吗  

NSString

2016-05-16 19:40

解决了吗  我cocopod导入的  i386de问题一直解决不了
点击此处继续提问与开发者们互动

申请试用

提交后工作人员会尽快与您联系进行功能演示
技术咨询已转移到管理后台,请先登录

即时通讯云使用者请在应用详情页面咨询
客服云使用者请进入管理员模式咨询

×

在线咨询

电话咨询

技术咨询

免费试用