升级到xcode11之后,我再运行项目发现报错了,报错如下:
Undefined symbols for architecture x86_64:
"__OBJC_PROTOCOL_$_TXVideoPreviewListener", referenced from:
l_OBJC_CLASS_PROTOCOLS_$_TCVideoPreview in TCVideoPreview.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
根据这个报错信息,进入到TCVideoPreview.h里面,发现有个黄色的警告:Cannot find protocol definition for 'TXVideoPreviewListener'
我试着把 #import <TXVideoEditerListener.h>头文件引入,再运行结果就编译成功了。
网友评论