Categories
frameworks ios sdk swift xcode

Split a big swift project to frameworks with core framework and module frameworks

I’m trying to split my large Swift framework to many module frameworks so every module in my application will be independent in order to reuse on another apps.
Due to the fact that I have a big data like classes and libraries that shared with all of the modules I thought to create a core_framework contains share data and enforce the app to use this framework in order to enable use all the other frameworks (one or more)

enter image description here

I saw an example of FBSDK there is a core framework and other functionality frameworks : FBSDKCoreKit and FBSDKLoginKit

This is important to me that all the other frameworks will not contains the core framework for reasons of efficiency.

My question is – after creating the core framework what I have to do in my nodule framework so it’s will recognize the core classes and functionality but will compile with out the core’s files?

Thanks