SpeechKit Pod for Swift会导致未声明的types错误
我已经实现了Nuance SpeechKit使用这个CocoaPod https://cocoapods.org/pods/SpeechKit并执行从接受的SO指令在这里: https : //stackoverflow.com/questions/30327372/implementing-nuance-speech-recognition -on-迅速-不能试听到onresult-oner
这样做后,我得到一个“使用未声明的types”SKRecognizerDelegate“”错误:
支持文件: 和
UIViewController中的错误:
我看到的唯一区别是你的桥文件中的#ifndef / #define行,
#ifndef Vanilla_Bridge_h #define Vanilla_Bridge_h #import <SpeechKit/SpeechKit.h>
在任何情况下,我认为这是一个桥梁文件错误,尝试删除它,并添加与本指南: http : //www.learnswiftonline.com/getting-started/adding-swift-bridging-header/祝你好运!