在集成Nuance Dragon Mobile时,架构x86_64的未定义符号

时间:2014-03-21 04:57:12

标签: ios objective-c xcode speech-recognition speech-to-text

我在XCode中开发iOS应用程序,并尝试集成Nuance移动SDK。我已经让他们的示例应用正常工作,现在我正在尝试将其添加到我现有的应用中。当我这样做时,我遇到了以下错误。我已经查看了类似的Undefined symbols for architecture armv7 while integrating speechkit of nuance dragon mobile,但是在答案之后(确保添加了CFNetwork和Security框架)并没有解决我的问题。正如您将看到未定义符号(nmsp)的前缀似乎与任何已知的"核心"相匹配。库。

根据符号名称,在我看来XCode缺少一些Nuance代码,但我不知道究竟是什么。我已经包含了Nuance SpeechKit框架,这是我从Nuance中添加的唯一知识。

Undefined symbols for architecture x86_64:
  "_nmsp_audio_player_create", referenced from:
      l093 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_player_delete", referenced from:
      l017 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_player_getAudioSink", referenced from:
      l027 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_player_start", referenced from:
      l027 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_player_stop", referenced from:
      l038 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_recorder_create", referenced from:
      l092 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_recorder_delete", referenced from:
      l076 in SpeechKit(libSpeechKit.a-x86_64-master.o)
      l080 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_recorder_reinitialize", referenced from:
      l028 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_recorder_start", referenced from:
      l028 in SpeechKit(libSpeechKit.a-x86_64-master.o)
      l053 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_audio_recorder_stop", referenced from:
      l037 in SpeechKit(libSpeechKit.a-x86_64-master.o)
      l040 in SpeechKit(libSpeechKit.a-x86_64-master.o)
      l045 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_dr_dictation_result_create", referenced from:
      l035 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_dr_dictation_result_delete", referenced from:
      l035 in SpeechKit(libSpeechKit.a-x86_64-master.o)
  "_nmsp_dr_dictation_result_getSentence", referenced from:
      l035 in SpeechKit(libSpeechKit.a-x86_64-master.o)

2 个答案:

答案 0 :(得分:1)

在Nuance Mobile SDK网站上有一个使用SpeechKit的页面,其中包含更多信息: Using Speech Kit

特别是:

Speech Kit框架依赖于一些核心iPhone OS框架,您必须将它们作为依赖项包含在应用程序中,以便它们在运行时可用。除了Foundation,您还必须将系统配置,音频工具箱,CFNetwork,AVFoundation和安全框架添加到Xcode项目中:

Required dependent frameworks

答案 1 :(得分:0)

原来我正在使用不受支持的iOS版本为我下载的Speechkit lib构建。