I have basically two frameworks running on Xcode. "ResearchKit" and "AppMethods". While all works fine, the "AppMethods" framework utilizes code within "ResearchKit". In fact it is there to abstract out more methods into framework. A superclass of sorts.
When using them in code, I have to import both frameworks
import ResearchKit
import AppMethods
Is there a way to embed ResearchKit within AppMethods such that I only need to import AppMethods. Without ResearchKit, AppMethods would not exist.
It really depends on the way you implement and use these frameworks within the app. Generally speaking, iOS doesn't support nested frameworks - please read the follwoing. But imports can be done within each framework - i.e you can import
ResearchKitdirectly fromAppMethodsand just "tell" Xcode that the code will be there on compile time, you will have to link the frameworks within the App level. Another useful guide I foundIt is quite simple to achieve with CoacoaPods and SPM