I recently worked on an iOS project where we decided to move away from Cocoapods and Git submodules, and migrate our internal libraries to Swift Package Manager. At the same time, we wanted to consolidate everything into a monorepo to make development and dependency management simpler. One important requirement was to preserve the full Git history of each library during the migration. Motivation The main motivation for this migration was that CocoaPods is effectively end-of-life—it is no lo...