SpeechKit Pod for Swift会导致未声明的类型错误 [英] SpeechKit Pod for Swift results in undeclared type errors

查看:247
本文介绍了SpeechKit Pod for Swift会导致未声明的类型错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用此


解决方案

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

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

在任何情况下,我认为这是一个桥梁文件错误,尝试删除它,本指南: http://www.learnswiftonline.com/getting-started / adding-swift-bridging-header / 祝你好运!


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: http://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:

解决方案

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!

这篇关于SpeechKit Pod for Swift会导致未声明的类型错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆