You have the main Project "App" with its own Git repo; you separate out the model into a separate framework project "AppKit" again with its own Git repo. "AppKit" is imported into "App" as a Git submodule & everything is merry.
If "AppKit" has external dependencies -- let's say managed by CocoaPods, the typical import-as-submodule fails since "AppKit"s dependencies are not satisfied by the "App". I want to know if there is any way to achieve this while importing the "AppKit" as Git submodule. Can it be done?
I am aware there are several straightforward solutions to this -
- Make "AppKit" a "Carthage"able framework & import it
- Make & import "AppKit" as a CocoaPod.
I just wanted a definitive answer (in case it cannot be done as Git Submodule) so I can move on.
Context: Pursuit of the ideal solution to managing a multi-project App (so other ideas / opinions welcome)
Making the question clearer --
Can an iOS framework project be imported as a Git Submodule if it has dependencies of its own. If the sub-dependencies are --
- Cocoapods
- Carthage
- Git submodule