SpeechKit Pod for Swift results in undeclared type errors

喜你入骨 提交于 2020-01-03 05:58:11

问题


I have implemented the Nuance SpeechKit using this CocoaPod https://cocoapods.org/pods/SpeechKit and implementing the instructions from the accepted S.O. answer here: https://stackoverflow.com/questions/30327372/implementing-nuance-speech-recognition-on-swift-cannot-listen-to-onresult-oner

After doing so I get a "use of undeclared type 'SKRecognizerDelegate'" error:

Supporting Files: and

Errors in UIViewController:


回答1:


The only difference I see are these #ifndef / #define lines in your bridge file,

#ifndef Vanilla_Bridge_h
#define Vanilla_Bridge_h
#import <SpeechKit/SpeechKit.h>

In any case I think it is a bridge file error, try to remove it and add it again with this guide: http://www.learnswiftonline.com/getting-started/adding-swift-bridging-header/ Good luck!



来源:https://stackoverflow.com/questions/35817358/speechkit-pod-for-swift-results-in-undeclared-type-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!