the weak symbol cannot be overri

2018-08-23  本文已影响175人  yaoyao_IOS

在加入第三方类库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"

上一篇 下一篇

猜你喜欢

热点阅读