ios8 - How do I add a swift class to my framework header? -
In Xcode 6 (Beta 6 6A 267N), I added a framework (selecting Swift as a language) And in the framework header this is the comment: // In this header, you should import all the public headers of your structure using statements like #import
I SO has found that you have your header file name Must have to add "-swift", although I was not able to work it.
I have also added $ (SRCROOT) in my header search path.
It seems that you are trying to create your swift library? In which case, you do not need to create an external interface described here:
With Swift you can mark your public interface by dividing sections and methods by public
. The header with the
-Swift suffix is one and that you use to pull the Objective-C code so that it can be used in your swift application.
Comments
Post a Comment