iOS开发

iOS开发 编译C++代码报错 typeinfo

2020-10-12  本文已影响0人  Leoeoo

报错如下:

Undefined symbols for architecture arm64:
  "typeinfo for liteav::ITXLiteavEncodedDataListener", referenced from:
      typeinfo for TRTCDemoEncodedDataListener in FHLiveSDK(TRTCDemoEncodedDataListener.o)
ld: symbol(s) not found for architecture arm64

这是因为混用了no-RTTI代码和RTTI代码
需要在 Xcode--> Build Settings --> Apple Clang - Language - C++ --> Enable C++ Runtime Types 设置为NO。如图所示:


上一篇下一篇

猜你喜欢

热点阅读