结合nuance dragon mobile的语音包时,架构armv7的未定义符号

时间:2012-07-15 14:12:32

标签: ios speech-recognition

我在运行时将我的应用程序与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)

请建议我解决此错误

2 个答案:

答案 0 :(得分:48)

您的项目似乎尚未添加CFNetwork.FrameworkSystemConfiguration.FrameworkSecurity.Framework。在Xcode中的“要链接的库”部分添加它们,一切都应该没问题。

答案 1 :(得分:6)

很抱歉迟到的回复。我自己刚刚解决了这个问题。

H2C03已关闭,但它实际上是您需要的CFNetwork.Framework和Security.framework。

令人遗憾的是,Dragon文档中的Speech Kit Basics演练只显示您需要UIKit.framework,Foundation.framework,CoreGraphics.framework,AudioToolbox.framework,SystemConfiguration.framework和Spe​​echKit.framework。这有点误导。

如果您打开DragonMobileRecognizer示例项目,您可以将它使用的框架与您的框架进行比较,并查看您缺少的内容。

DragonMobileRecognizer Sample Project Frameworks