[英]How can I import one framework and that import includes another framework
I have a framework A, this framework uses another framework B. I want in the application to make import A and that includes B without importing both every time.我有一个框架 A,这个框架使用另一个框架 B。我希望在应用程序中进行导入 A 并且包含 B 而无需每次都导入。 I want also to import B separately.
我还想单独导入 B 。
I am making some cleaning to the code on my XCode 11.1, swift 5.我正在清理我的 XCode 11.1、swift 5 上的代码。
actually I need to实际上我需要
import A
import B
what I want to have is我想要的是
import A -> A+B
or或者
import B -> only B
the solution is to include the header file of B in the header file of A.解决方法是将B的header文件包含在A的header文件中。
#import <B/B.h>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.