我正在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)
最佳答案
在Nuance Mobile SDK网站上,有一个有关使用SpeechKit的页面,其中包含更多信息:
Using Speech Kit
尤其是:
语音工具包框架取决于一些核心iPhone OS框架,您必须将它们作为依赖项包括在应用程序中,以便它们在运行时可用。除了Foundation之外,还必须将系统配置,音频工具箱,CFNetwork,AVFoundation和安全性框架添加到Xcode项目中: