swift framework 调用 ObjC 代码
So what is an umbrella framework? Why is it used?
Umbrella frameworks are frameworks which contain frameworks within. This can be used in several situations.
When you are developing a custom network class which require a different parsing logic
or need to implement a custom online payment functionality,
you might create an umbrella framework.
#ifdef __OBJC__
#import
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "demux.h"
#import "mux.h"
#import "decode.h"
#import "encode.h"
#import "types.h"
#import "mux_types.h"
#import "format_constants.h"
#import "CGImage+WebP.h"
umbrella 文件,需要设置为公开
里面所引用的文件,都要设置为公开,
递归涉及到的,都要设置为公开,
例如:
不能是项目级别欢迎分享,转载请注明来源:内存溢出
评论列表(0条)