我按照每个步骤将 SpeechKit 框架添加到我的应用程序,但我无法让它工作。 构建应用程序后,出现以下错误:
Undefined symbols for architecture i386:
"_SpeechKitApplicationKey", referenced from:
l069 in SpeechKit(libSpeechKit.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我从 Project-Build Phases-Link Binary With Libraries 添加了 SpeechKit 框架 我已经包含了它工作所需的所有必要框架:
- 基金会
- 系统配置
- 音频工具箱
- CFNetwork
- AV 基金会
- 安全
有效的架构,在我的 bBuild 设置中是 armv7m armv7s arc64
最佳答案
您需要在源代码中定义 key
const unsigned char[] SpeechKitApplicationKey = {0x12, 0x34, ..., 0x89};
在使用库之前需要获取 key 。
参见 documentation了解更多详情。
关于ios - 架构 i386 的 undefined symbol : "SpeechKitApplicationKey",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31051480/