# Modernizing Dependency Management: Beyond CocoaPods (Part 2 -- The Execution)

DevFeed: [Modernizing Dependency Management: Beyond CocoaPods (Part 2 -- The Execution)](<https://devfeed.tech/articles/modernizing-dependency-management-beyond-cocoapods-part-2-the-execution-77968.md>)

Original publisher: [Read original article](<https://blog.hotstar.com/modernizing-dependency-management-beyond-cocoapods-part-2-the-execution-bf3b9d739efb?source=rss----dbc3fcbc7f07---4>)

Author: Saurabh Kapoor

Published: 2026-02-13T04:26:22Z

Content type: article

Language: en

Sources: [JioHotstar](<https://devfeed.tech/sources/jiohotstar.md>)

Topics: [Dependency management](<https://devfeed.tech/topics/dependency-management.md>), [cocoapods](<https://devfeed.tech/topics/cocoapods.md>), [swift-package](<https://devfeed.tech/topics/swift-package.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [dependency-management](<https://devfeed.tech/tags/dependency-management.md>), [ios-development](<https://devfeed.tech/tags/ios-development.md>), [migration](<https://devfeed.tech/tags/migration.md>), [mobile-development](<https://devfeed.tech/tags/mobile-development.md>), [spm](<https://devfeed.tech/tags/spm.md>), [swift](<https://devfeed.tech/tags/swift.md>), [swift-package-manager](<https://devfeed.tech/tags/swift-package-manager.md>)

## AI overview

The team migrated 60 CocoaPods to Swift Package Manager over six months in four phases, keeping CocoaPods available until releases succeeded without it. They first tested coexistence with mature third-party packages while preserving developer workflows and CI. For private binary targets, SPM's downloads lacked authentication; configuring `.netrc` credentials on developer machines and CI enabled authenticated downloads and checksum verification. Development pods became packages with preserved module boundaries, separate Objective-C and Swift targets, explicit resources and build settings, and most platform-specific XIB UI moved into code. CocoaPods `post_install` logic shifted to scoped Xcode build phases or explicit configuration. The migration also exposed runtime duplicate-symbol and framework-loading issues, plus Slather's lack of first-class support for pure Swift packages; the team audited linkage and moved coverage to an `xcresult`-based pipeline. The account emphasizes phased validation and the tradeoff of upfront refactoring for more explicit package and build behavior.

## Source excerpt

Modernizing Dependency Management: Beyond CocoaPods (Part 2 -- The Execution)Recap In Part 1, we shared the strategy -- why we had to move away from CocoaPods, how we evaluated our options, and the phased migration plan we designed to modernize 60 pods over 2 quarters without disrupting feature development. We bring it all home and share our learnings and scars. Phase 1: Proving That SPM Could Coexist Big bang approaches for a product that supports over a billion Indians is not on the menu. We could not stop the train and we had to upgrade while we ran as fast as we were. Swift Package Manager (SPM) had to live alongside CocoaPods without disrupting day-to-day development. This was not negotiable. It was also about building confidence gradually. Our dependency graph was already complex, and CocoaPods was deeply embedded in how the app was built, tested, and shipped. Introducing a second dependency manager into that ecosystem was risky. If coexistence failed, everything downstream would be compromised. So we treated Phase 1 as a controlled experiment. Defining Success We were explicit about what success looked like: Developers should not need to change their workflows CI pipelines must remain stable No runtime regressions CocoaPods must remain fully functional Choosing the Right First Dependencies We intentionally avoided internal SDKs in this phase. Instead, we chose third-party libraries that already had mature SPM support and met three criteria: widely used in the app, minimal customization, and no deep runtime coupling with internal frameworks or development pods. This allowed us to isolate SPM behavior without risking business-critical flows. By migrating only a handful of carefully selected dependencies, we could observe real-world behavior without destabilizing the system. Invisible to Developers One of the most important constraints we enforced was developer invisibility. Developers continued to open the same workspace, build using the same schemes, run tests t