我正在开发一个应用程序,我想将语音转换为文本。为此,我正在整合来自https://github.com/KingOfBrian/VocalKit的VocalKit第三方库。当我包含代码并编译它给我错误时。我做了所有必要的更改并导入了框架。
这是我的代码
(void) recognizedTextNotification:(NSNotification*)notification {
NSDictionary *dict = [notification userInfo]; NSString *phrase =
[dict objectForKey:VKRecognizedPhraseNotificationTextKey];
[patientId setText:phrase]; }
我收到了以下错误
Undefined symbols for architecture i386:
"_VKRecognizedPhraseNotificationTextKey", referenced from:
-[ViewController recognizedTextNotification:] in ViewController.o ld: symbol(s) not found for architecture i386