SteBra
SteBra

Reputation: 4247

Undefined symbols for architecture i386: "SpeechKitApplicationKey"

I followed every step on adding a SpeechKit framework to my app, but I cannot get it to work. After building an app, i get the following error:

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)

I added SpeechKit framework from Project-Build Phases-Link Binary With Libraries And I have included all the necessary frameworks that are needed in order for it to work:

  1. Foundation
  2. System Configuration
  3. Audio Toolbox
  4. CFNetwork
  5. AVFoundation
  6. Security

Valid architectures, in my bBuild Settings are armv7m armv7s arc64

Upvotes: 1

Views: 239

Answers (1)

Nikolay Shmyrev
Nikolay Shmyrev

Reputation: 25220

You need to define the key in your sources

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

You need to get the key before using the library.

See the documentation for more details.

Upvotes: 2

Related Questions