swift-objective-c混编的framework

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

  • 1.创建cocoaTouchframework,
  • 2.把需要导出的头文件添加到Headers中,如下图


    overview.png
  • 3.把头文件添加到导出头文件


//! 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 

//#import 

#import 

你可能感兴趣的:(swift-objective-c混编的framework)