ios - SpeechKit Pod for Swift 导致未声明的类型错误

标签 ios swift compiler-errors cocoapods speechkit

我已经使用此 CocoaPod 实现了 Nuance SpeechKit https://cocoapods.org/pods/SpeechKit并执行 accepted S.O. answer 中的说明这里:https://stackoverflow.com/questions/30327372/implementing-nuance-speech-recognition-on-swift-cannot-listen-to-onresult-oner

这样做后,我收到“使用未声明的类型'SKRecognizerDelegate'”错误:

支持文件: enter image description here enter image description hereenter image description here

UIViewController 中的错误: SKRecognizerDelegate error screen

最佳答案

我看到的唯一区别是桥接文件中的这些 #ifndef/#define 行,

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

无论如何,我认为这是一个桥接文件错误,请尝试删除它并使用本指南再次添加它:http://www.learnswiftonline.com/getting-started/adding-swift-bridging-header/祝你好运!

关于ios - SpeechKit Pod for Swift 导致未声明的类型错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35817358/

相关文章:

java - 尝试使用JFXPasswordField Jfoenix JAVA时出错

ios - 从一个 View Controller 模态切换到另一个 View 后, View 完全是黑色的

ios - 在一定时间后从 nsmutablearray 中删除 nsobject

android - Android 中的 iOS OpenUrl 等效项

c++ - 将 Windows 代码移植到 Mac

haskell - Haskell奇怪的 `zip`错误

objective-c - iOS 5 中的 setTitleView 奇怪行为 - objective-c

swift - 调用不带参数的泛型函数

iOS Swift 用户默认观察者错误消息已收到但未处理

swift - 关闭时缺少返回预计返回 'Void?'