注册

环信的sdk和h5+的sdk冲突

我项目中集成了环信sdk,也集成了h5+,编译时报如下的错误
duplicate symbol _fopen_file_func in:
    /Users/ygsoft/Desktop/TouGuPro/Pods/EaseMobSDK/EaseMobSDK/lib/libEaseMobClientSDKLite_x86_64.a(ioapi.o)
    /Users/ygsoft/Desktop/TouGuPro/TouGuPro/SDK/libs/Release-iphonesimulator/liblibPDRCore.a(ioapi.o)

duplicate symbol _unz_copyright in:
    /Users/ygsoft/Desktop/TouGuPro/Pods/EaseMobSDK/EaseMobSDK/lib/libEaseMobClientSDKLite_x86_64.a(unzip.o)
    /Users/ygsoft/Desktop/TouGuPro/TouGuPro/SDK/libs/Release-iphonesimulator/liblibPDRCore.a(unzip.o)

我尝试将其中一个的.a解压成.o,然后删除掉ioapi.o和unzip.o,再合成,编译的时候又出现找不到的错误:
"_unzClose", referenced from:
      -[EMZipArchive UnzipCloseFile] in libEaseMobClientSDKLite_x86_64.a(EMZipArchive.o)
      -[EMZipArchive UnzipCloseFile] in libPods.a(EMZipArchive.o)
请问该如何解决?谢谢!
已邀请:
冲突了,重新装下sdk试下。
我也有类似的错误,这不是重新装SDK能解决的。
duplicate symbol __ZTSN4Json12StyledWriterE in:

    /Users/apple/Library/Developer/Xcode/DerivedData/p4-hcituljkiqhpzaaingyiealrwqkx/Build/Intermediates/p4.build/Debug-iphonesimulator/jryMobile.build/Objects-normal/x86_64/json_writer.o

    /Users/apple/project/rjhy/ytxmobile-iphone-prototype/YtxMobile/Pods/EaseMobSDKFull/EaseMobSDKFull/lib/libEaseMobClientSDK_x86_64.a(jsoncpp.o)

duplicate symbol __ZTSN4Json10FastWriterE in:

    /Users/apple/Library/Developer/Xcode/DerivedData/p4-hcituljkiqhpzaaingyiealrwqkx/Build/Intermediates/p4.build/Debug-iphonesimulator/jryMobile.build/Objects-normal/x86_64/json_writer.o

    /Users/apple/project/rjhy/ytxmobile-iphone-prototype/YtxMobile/Pods/EaseMobSDKFull/EaseMobSDKFull/lib/libEaseMobClientSDK_x86_64.a(jsoncpp.o)

ld: 236 duplicate symbols for architecture x86_64
 
简单来说就是环信用到json_writer,我们也用到 json_writer
你用的什么版本?
pod 'EaseMobSDKFull'
装的是2.1.7
将你们自己的去掉吧

要回复问题请先登录注册