简体   繁体   中英

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. I want also to import B separately.

I am making some cleaning to the code on my 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.

#import <B/B.h>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM