Unable to import iSpeech into my iOS Swift project

179 Views Asked by At

As the iSpeechSDK is written for Objective-C, I tried to import it in my existing iOS project using a bridging-header. I've copied all the associated headers and frameworks. However, I'm still unable to call the Objective-C class. See the attached screenshot. Let me know how I can resolve this issue.

enter image description here

2

There are 2 best solutions below

0
On BEST ANSWER

I finally got it to work by following Renan Kosicki's answer in https://stackoverflow.com/a/24293717/4275096. My header file wasn't created at the correct location.

7
On

This was actually an error as a result of a circular reference. You should have to import a class in your view controller , and that classes header file was importing the swift header

In your viewcontrollor.swift :

import iSpeechSDk
import .... // Add your class 

Hope this helps !!