Xcode umbrella framework

Xcode umbrella framework,第1张

使用场景,

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 文件,需要设置为公开





里面所引用的文件,都要设置为公开,

递归涉及到的,都要设置为公开,



例如:

不能是项目级别

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/993259.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存