9

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

请建议我解决这个错误

4

2 回答 2

48

看来您还没有将CFNetwork.Framework,SystemConfiguration.Framework和添加Security.Framework到您的项目中。将它们添加到 Xcode 中的“要链接的库”部分,一切都应该没问题。

于 2012-07-15T14:16:22.660 回答
6

这么晚才回复很抱歉。我自己解决了这个问题。

H2C03 很接近,但它实际上是您需要的 CFNetwork.Framework 和 Security.framework。

不幸的是,Dragon 文档中的 Speech Kit Basics 演练仅显示您需要 UIKit.framework、Foundation.framework、CoreGraphics.framework、AudioToolbox.framework、SystemConfiguration.framework 和 SpeechKit.framework。这有点误导。

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

DragonMobileRecognizer 示例项目框架

于 2012-10-18T17:26:28.987 回答