美文网首页
the weak symbol cannot be overri

the weak symbol cannot be overri

作者: yaoyao_IOS | 来源:发表于2018-08-23 10:09 被阅读175次

在加入第三方类库NIMSDK时多出个警告:

ld: warning: direct access in function 'webrtc::AudioBuffer::DeinterleaveFrom(webrtc::AudioFrame*)' from file '/Users/my/Desktop/maixiaojian/Pods/NIMSDK/NIMAVChat/Libs/libnvs.a(audio_buffer.o)' to global weak symbol 'webrtc::AudioFrame::empty_data()::kEmptyData' from file '/Users/my/Desktop/maixiaojian/Pods/NIMSDK/NIMAVChat/Libs/libnvs.a(NMCAPMProcessor.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

解决方案:

在Targets ->Build Settings ->Apple LLVM 9.0 - Code Generarion >Symbols Hidden By Default 改为"YES"

相关文章

网友评论

      本文标题:the weak symbol cannot be overri

      本文链接:https://www.haomeiwen.com/subject/omlpiftx.html