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