Capacitor App: CocoaPods → SPM Migration Migrate an existing Capacitor app project's iOS dependency management from CocoaPods to Swift Package Manager (SPM). The migration is destructive — the existing folder is deleted and re-scaffolded, then user-authored files are restored from a temporary backup. Prerequisites | Requirement | Version | | ----------- | ------- | | Capacitor | 6+ | | Node.js | 18+ | | Xcode | 15+ | | CocoaPods | installed (only used for verification before deletion) | The project must be a Capacitor app (not a plugin) and must currently use CocoaPods ( exists). Procedures S…