swift-objective-c混编的framework如何制作呢?

1.创建cocoaTouchframework,

2.需要导出的头文件添加到Headers中

image

3.头文件添加到导出头文件

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13


//! Project version number for YKBaseFramework.
FOUNDATION_EXPORT double YKBaseFrameworkVersionNumber;

//! Project version string for YKBaseFramework.
FOUNDATION_EXPORT const unsigned char YKBaseFrameworkVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <YKBaseFramework/PublicHeader.h>

//#import <YKBaseFramework/YKFile.h>

#import <YKBaseFramework/YKString.h>