Importing Swift classes within a Objective-C Framework

Posted by theMonster on Stack Overflow See other posts from Stack Overflow or by theMonster
Published on 2014-06-09T21:28:23Z Indexed on 2014/06/10 21:25 UTC
Read the original article Hit count: 411

Filed under:
|
|

I have a custom Framework that has a bunch of Objective-C Classes. Within the Framework, I'd like to add more classes using Swift. However, when trying to expose the Swift classes to the Objective-C code using: MyProduct-Swift.h, it comes up as "MyProduct-Swift.h file not found".

I've tried this in a single view template and it works fine. Is it not possible to import Swift within a framework?

I've also verified that I have set the Defines Module setting and the Module Name. I've tried it with and without these settings.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode