问题
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