Undefined symbols for architecture arm64: "_OBJC_CLASS_$_RtspConnection", referenced from:objc-class-ref in ViewController.o 错误解决

该错误表示RtspConnection 所引用的静态库找不到,工程里面明明有静态库,还需要在build Phases -> Link Binary with libraries 添加该静态库,并且在library search path 引入库的路径。

Undefined symbols for architecture arm64:
"___cxa_end_catch", referenced from:
H264or5VideoStreamParser::parse() in libAWLive555.a(H264or5VideoStreamFramer.o)
MPEG4VideoStreamParser::parse() in libAWLive555.a(MPEG4VideoStreamFramer.o)
MPEG1or2VideoStreamParser::parse() in libAWLive555.a(MPEG1or2VideoStreamFramer.o)
"___cxa_pure_virtual", referenced from:
vtable for FramedSource in libAWLive555.a(FramedSource.o)
vtable for MediaSink in libAWLive555.a(MediaSink.o)
vtable for RTPSource in libAWLive555.a(RTPSource.o)
vtable for BasicTaskScheduler0 in libAWLive555.a(BasicTaskScheduler0.o)
vtable for UsageEnvironment in libAWLive555.a(UsageEnvironment.o)
vtable for TaskScheduler in libAWLive555.a(UsageEnvironment.o)
vtable for GenericMediaServer in libAWLive555.a(GenericMediaServer.o)
该错误是因为库里面调用了c++代码,需要添加系统库libc++.tbd库,完美解决

你可能感兴趣的:(Undefined symbols for architecture arm64: "_OBJC_CLASS_$_RtspConnection", referenced from:objc-class-ref in ViewController.o 错误解决)