我正在将我的应用程序与Nuance Dragon Mobile的语音技术集成,但在运行时出现以下错误:
Undefined symbols for architecture armv7:
"_kCFStreamPropertySSLPeerCertificates", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
l642 in SpeechKit(libSpeechKit.a-armv7-master.o)
l643 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_kCFStreamSSLValidatesCertificateChain", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_kCFStreamSSLAllowsAnyRoot", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_OBJC_CLASS_$_AVAudioPlayer", referenced from:
objc-class-ref in SpeechKit(libSpeechKit.a-armv7-master.o)
"_kCFStreamSSLPeerName", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_kCFStreamSSLAllowsExpiredRoots", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_kCFStreamSSLAllowsExpiredCertificates", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_SecCertificateCopySubjectSummary", referenced from:
l642 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_SecCertificateCopyData", referenced from:
l643 in SpeechKit(libSpeechKit.a-armv7-master.o)
"_kCFStreamPropertySSLSettings", referenced from:
l469 in SpeechKit(libSpeechKit.a-armv7-master.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请帮我解决这个错误。
symbols not found
是一个链接错误,这意味着在编译各个源文件后,由于缺少函数,导致生成的目标文件无法组合成完整的可执行文件。这些函数在框架中。通过熟记最常见框架的前缀(核心基础框架 - CF,安全框架 - Sec等),很容易就能知道需要做什么。 - user529758