报错如下:
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。如图所示:
网友评论