【问题标题】:Undefined symbols for architecture i386: "SpeechKitApplicationKey"架构 i386 的未定义符号:“SpeechKitApplicationKey”
【发布时间】:2015-06-25 13:16:35
【问题描述】:

我遵循了将 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

【问题讨论】:

  • 你能粘贴你的m和h文件的标题吗?有时 const 值往往会返回该值
  • 究竟是哪个文件?@EmilDo
  • 我已将 SpeechKitApplicationKey 添加到我的项目中,但仍然出现同样的错误。请帮我解决这个问题。

标签: ios objective-c frameworks speech-recognition


【解决方案1】:

您需要在来源中定义键

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

您需要在使用该库之前获取密钥。

有关详细信息,请参阅documentation

【讨论】:

    猜你喜欢
    • 2011-08-14
    • 2011-10-30
    • 2023-03-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-12
    相关资源
    最近更新 更多