架构 i386 的未定义符号:"SpeechKitApplicationKey"

Undefined symbols for architecture i386: "SpeechKitApplicationKey"

我按照每个步骤将 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 框架 我已经包括了所有必要的框架,以便它工作:

  1. 基金会
  2. 系统配置
  3. 音频工具箱
  4. CFNetwork
  5. AVFoundation
  6. 安全

有效架构,在我的bBuild设置中是armv7m armv7s arc64

您需要在源代码中定义密钥

 const unsigned char[] SpeechKitApplicationKey = {0x12, 0x34, ..., 0x89};

使用库前需要获取密钥。

有关详细信息,请参阅 documentation