Reputation: 584
I'm trying to import my speech recognition framework into my project. Sadly my project is in Swift and speech rec is in objc. I don't see a problem with this. I have created a bridging header file before importing the framework and compiled to make sure it has no errors. Then I dragged the framework into my project. Got a successful compile again. Now I type this in my header file:
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import "SpeechKit/SpeechKit.h"
#endif
And then I get the error: "SpeechKit/SpeechKit.h" file not found
I have tried reimporting the framework. Deleting and making a new header file etc. Nothing seems to work. I don't get why it's not picking up the header files from the framework.
Does anyone have any ideas? All help would be greatly appreciated. Thank you so much.
Upvotes: 0
Views: 849
Reputation: 18
use #import <SpeechKit/SpeechKit.h>
in bridging header and don't forget to place import SpeechKit
in your swift file
Upvotes: 0
Reputation: 23883
Try #import "SpeechKit.h"
or #import <SpeechKit/SpeechKit.h>
instead #import "SpeechKit/SpeechKit.h"
Upvotes: 1