注册

集成UI时, 出现 ld: 43 duplicate symbols for architecture arm64

 我没有添加任何的第三方库
自己试着把3rdparty中UMeng和VoiceConvert文件夹下的.a文件删除后, 仍然还是报上述错误
具体错误信息如下:
ld: warning: directory not found for option '-L/Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/3rdparty/UMeng'

ld: warning: directory not found for option '-L/Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/3rdparty/VoiceConvert/opencore-amrnb'

ld: warning: directory not found for option '-L/Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/3rdparty/VoiceConvert/opencore-amrwb'

ld: warning: directory not found for option '-L/Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobFile/3rdparty/UMeng'

ld: warning: directory not found for option '-F/Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/3rdparty/Parse'

ld: warning: directory not found for option '-F/Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobFile/3rdparty/Parse'

duplicate symbol _WebRtcNsx_Create in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(noise_suppression_x.o)

duplicate symbol _WebRtcNsx_Free in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(noise_suppression_x.o)

duplicate symbol _WebRtcNsx_Init in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(noise_suppression_x.o)

duplicate symbol _WebRtcNsx_set_policy in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(noise_suppression_x.o)

duplicate symbol _WebRtcNsx_Process in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(noise_suppression_x.o)

duplicate symbol _WebRtcNsx_InitCore in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_set_policy_core in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_FeatureParameterExtraction in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_ComputeSpectralFlatness in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_ComputeSpectralDifference in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_DataAnalysis in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_DataSynthesis in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_ProcessCore in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core.o)

duplicate symbol _WebRtcNsx_SpeechNoiseProb in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(nsx_core_c.o)

duplicate symbol _WebRtcIsacfix_DecodeSpec in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EncodeSpec in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_MatrixProduct1C in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_MatrixProduct2C in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_DecodeLpc in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_DecodeLpcCoef in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EstCodeLpcGain in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EncodeLpc in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_DecodePitchGain in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EncodePitchGain in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_DecodePitchLag in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EncodePitchLag in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_DecodeFrameLen in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _kFrameLenCdfPtr in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _kFrameLenInitIndex in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EncodeFrameLen in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_DecodeSendBandwidth in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _kBwCdfPtr in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _kBwInitIndex in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _WebRtcIsacfix_EncodeReceiveBandwidth in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _kFrameLenCdf in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

duplicate symbol _kBwCdf in:

    /Users/zhangjian/Documents/Desktop/个人文件/学习/EaseMobTest/EaseMobTest/EaseMobSDK/lib/libEaseMobClientSDK.a(entropy_coding.o)

ld: 43 duplicate symbols for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)
已邀请:

lifei9241

赞同来自: 乱羽

这里解决问题效率不是很快,你从官网技术支持入口进来问吧,会快些。
other linker flags 那里怎么设置的,截个图贴下
这是other linker flags的截图
import“EaseMob.h”
我也有一样的问题,官方的demo,模拟器运行没有错误.真机就会报这个错.然后我之前在自己的项目里面集成环信SDK,导入libEaseMobClientSDKLite.a 就会报错.
官方demo 真机运行会报错?  我这边真机模拟器运行都没有问题。先导入SDK build运行没有问题之后再进行导UI。最新的demo有EaseUI库,可以导入到工程里,方便集成。

9D83056D-6241-4269-A520-48911217AC69.png


你指的是从这里点进去QQ聊天吗?可是没有回复我

lizg - ……

@乱羽  请问您现在的问题解决了么? 如果没有解决,你可以留下你的QQ,谢谢

要回复问题请先登录注册