---
title: "CocoaPods vs Swift Package Manager: What to Use Now Trunk Is Frozen"
author: "Nate Laquis"
author_role: "Founder & CEO"
date: "2026-12-05"
category: "Technology"
tags:
  - cocoapods vs swift package manager
  - CocoaPods trunk read-only
  - Swift Package Manager migration
  - React Native iOS dependencies
  - Flutter Swift Package Manager
excerpt: "CocoaPods trunk stopped taking new Podspecs on December 2, 2026. Here is what that breaks, what it does not, and which dependency manager each kind of iOS app should be on now."
reading_time: "11 min read"
canonical_url: "https://kanopylabs.com/blog/cocoapods-vs-swift-package-manager-what-to-use-now-trunk-is-frozen"
---

# CocoaPods vs Swift Package Manager: What to Use Now Trunk Is Frozen

## The short answer

If you are building or running a native Swift app, use Swift Package Manager and move off CocoaPods this quarter. If you run a React Native or Expo app, stay on CocoaPods for now, because it is still the default and supported path in React Native 0.88 and Expo SDK 58, and plan the switch for when React Native makes SwiftPM the default. If you run a Flutter app, upgrade to Flutter 3.44 or later, where SwiftPM is already on by default, and replace the plugins that still force a CocoaPods fallback.

That is the whole decision for most founders. The rest of this post is the detail behind it: what the CocoaPods change did, what it did not do, how each option compares, and what to do this month depending on how your app is built.

## What changed on December 2, and what did not

CocoaPods trunk, the central service that accepts new Podspecs and publishes them to the public Specs repo, went read-only on December 2, 2026. The CocoaPods team announced the plan on their blog in November 2024, updated it in May 2025, emailed every Podspec contributor, and ran a test week of refusing new Podspecs from November 2 to 6 this year. Then they flipped it for good.

Here is what that means in practice:

- **No new pods or versions arrive through trunk.** If a library only ships through the public Specs repo, the last version it published before December 2 is the last version you will get from there.

- **Existing builds keep working.** The CocoaPods team says this directly. The Specs repo and the CDN keep serving as long as GitHub and jsDelivr exist, so pod install on a pinned Podfile.lock still resolves.

- **The Specs repo gets archived on GitHub.** It becomes a frozen record, not a living registry.

- **Private specs repos and vendored podspecs are unaffected.** If your pods come from your own specs repo, or from podspec files that ship inside npm packages, the change does not touch them.

That last point matters more than most of the panic posts admit. A React Native app pulls most of its iOS native code from podspecs that live in node_modules, not from trunk. Those keep updating every time the npm package updates. What freezes is the set of native SDKs you pull from the public Specs repo, and that is where the big vendors have already made their move.

Google's Firebase team stopped publishing new Firebase Apple SDK versions to CocoaPods in October 2026, and its docs say Firebase 12 is the final major version on CocoaPods. Google Mobile Ads posted on November 6, 2026 that it will not publish new iOS SDK or mediation adapter versions to CocoaPods after December 2, and that new releases and bug fixes go out only through Swift Package Manager and manual downloads. RevenueCat published SwiftPM migration guidance the same day and added a build warning for apps still pulling it through CocoaPods. Expect more SDKs to follow the same pattern over the next year.

## CocoaPods vs Swift Package Manager, side by side

Before the freeze, the honest comparison was close for a lot of teams. CocoaPods had a decade of libraries and handled awkward cases like mixed Objective-C and C++ well. SwiftPM was built into Xcode but fussier about structure. The freeze ends the close call. Here is how the two compare today:

![MacBook Pro on a desk with code open in an editor, the kind of setup where iOS dependencies get resolved](https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=800&q=80)

### Integration

**CocoaPods:** a Ruby gem that generates a Pods project and an .xcworkspace. You need Ruby, usually Bundler, and you run pod install after every dependency change. **SwiftPM:** part of the Swift toolchain. You add a package URL in Xcode or in a Package.swift, and Xcode resolves it. No Ruby, no workspace wrapper.

### Binary support

Both handle prebuilt XCFrameworks. CocoaPods uses vendored_frameworks in the podspec. SwiftPM uses binary targets with a checksum, which is how Firebase and Google Mobile Ads ship their closed-source pieces. SwiftPM is stricter about how an XCFramework and its headers are laid out, which is the reason React Native had to rework its own prebuilt binaries before it could support SwiftPM at all.

### Xcode integration

SwiftPM wins outright. Packages show up in the project navigator, versions resolve inside Xcode, and you never open the wrong file because you forgot the workspace. CocoaPods works, but it is a second system bolted onto the project.

### Build speed

Mixed. Clean builds depend more on how much source you compile than on which manager you use. Prebuilt binaries help either way. SwiftPM does save the Ruby step and the pod install round trip on every branch switch, and CI images get simpler. Do not migrate expecting a big compile-time drop. Migrate because the libraries are moving.

### Resource bundles

CocoaPods has resource_bundles. SwiftPM has declared resources and generates a Bundle.module accessor. SwiftPM's version is cleaner but forces library authors to stop assuming the main bundle, which is a common migration snag in older libraries.

### Private pods and registries

CocoaPods uses private specs repos, which still work after the freeze. SwiftPM resolves from any Git URL your machine and CI can reach, including private GitHub repos, and it also supports package registries if your company runs one. For most startups, private Git repos are enough.

### Cross-platform framework support

This is where CocoaPods still holds on. React Native and Expo default to it today. Flutter defaults to SwiftPM but falls back to CocoaPods for plugins that have not added SwiftPM support. That gap is closing fast, and it is the only real reason left to keep CocoaPods in a new project.

## Moving a native app to Swift Package Manager

For a native Swift or SwiftUI app, this is a one to three day job for most codebases with fewer than twenty pods. Larger apps with internal pods and custom build phases take longer, and the time goes into the odd libraries, not the common ones.

1. **Inventory your Podfile.** For each pod, check the library's GitHub page for a Package.swift or a separate SwiftPM repo. Google Mobile Ads, for example, lives at github.com/googleads/swift-package-manager-google-mobile-ads. Mark each pod as ready, replaceable or stuck.

2. **Replace the stuck ones first.** A pod with no SwiftPM support and no commits in two years is a liability anyway. Swap it for a maintained library, or vendor the source into your app as a local package.

3. **Run pod deintegrate.** This removes the Pods project, the build phases CocoaPods added and the workspace wiring. Delete the Podfile, the Podfile.lock and the workspace once you are sure.

4. **Add packages in Xcode.** File, then Add Package Dependencies, paste the URL, pick "Up to Next Major Version" unless you have a reason to pin harder, and add the products to the right targets.

5. **Fix imports and bundles.** Module names sometimes differ between the pod and the package. Code that loads images or JSON from a library may need to read from the package bundle instead of the main bundle.

6. **Update CI.** Drop the Ruby setup and pod install. Cache the SwiftPM checkout directory instead. Commit Package.resolved so CI and every laptop build the same versions.

7. **Ship a TestFlight build and run a full regression pass.** Pay attention to anything with a binary SDK: analytics, ads, crash reporting, payments. Those are where a missing linker flag or resource shows up only at runtime.

If your project file is a merge-conflict factory, this is also a good moment to look at Tuist. It generates the Xcode project from Swift code and leaves dependency resolution to SwiftPM, so it sits on top of the migration rather than replacing it. Small teams with one app target can skip it.

## What React Native and Expo apps should do

React Native is mid-switch, and the dates are public. React Native 0.87, released August 11, 2026, added experimental SwiftPM support for iOS. It is opt-in, it consumes the same prebuilt XCFrameworks React Native already publishes, and the setup only needs Xcode. You turn it on with npx react-native spm --deintegrate from the ios folder. The release post was blunt: do not use it in production yet.

React Native 0.88, released October 19, 2026, hardened that tooling with fixes from real apps and libraries, and kept CocoaPods fully supported. The same post laid out the plan: 0.89 targets SwiftPM as the default, with an opt-out to CocoaPods for apps that are still blocked, and CocoaPods support gets removed in a later release.

Expo is following React Native's lead. Expo SDK 58, released October 15, 2026 on React Native 0.88, says CocoaPods remains the default and supported path. It also restructured Expo's iOS sources into separate SwiftPM targets and shipped a preview autolinking plugin for the npx react-native spm pipeline. That is groundwork, not a switch.

![An iPhone resting next to a white Apple keyboard on a wooden desk](https://images.unsplash.com/photo-1605436247078-f0ef43ee8d5c?w=800&q=80)

So here is what I would tell a founder with a React Native app in production today:

- **Do nothing drastic this month.** Your pod install still works. Most of your native modules ship their podspecs inside npm, and those keep updating.

- **Audit the pods that come from trunk.** Open your Podfile.lock and look for native SDKs that do not live in node_modules: Firebase, ads SDKs, analytics, payment SDKs. Those are the ones that will stop getting fixes. Check what each React Native wrapper plans to do about it.

- **Stay current on React Native.** If you are two or three versions behind, the move to SwiftPM will land on top of an upgrade you already owe. Our [New Architecture guide](/blog/react-native-new-architecture-guide) covers the upgrade that most older apps still need first.

- **Try SwiftPM on a branch.** Run the opt-in on a throwaway branch and see which libraries fail. Libraries without a Package.swift can be scaffolded from their podspec with npx react-native spm scaffold. That list of failures is your real migration backlog.

Expo managed apps have the easiest path. If you use prebuild and Continuous Native Generation, the iOS project is generated for you, so when Expo flips the default, most of the change comes with an SDK upgrade. If you are weighing that tradeoff now, our [Expo vs bare React Native comparison](/blog/expo-vs-bare-react-native) walks through it. Politik, a React Native and Expo app we built, went to the App Store in under three months and hit #2 within a week of launch. The [Politik case study](/work/politik) shows what that stack looks like in production.

## What Flutter apps should do

Flutter moved first. As of Flutter 3.44, SwiftPM is on by default for iOS and macOS dependencies. Upgrade Flutter, run your app, and the tooling adds SwiftPM integration to the project for you. The Flutter docs say CocoaPods is now in maintenance mode.

The catch is the fallback. If any plugin in your app does not support SwiftPM, Flutter quietly uses CocoaPods for it. Your app builds fine, and you may not notice that one plugin is still riding on a frozen registry.

1. **Get onto 3.44 or later.** If you are still on an older release, that upgrade is the first task.

2. **Check the build output for the fallback.** Any plugin that pulls CocoaPods back in is one you need to update, replace or fork.

3. **Do not turn SwiftPM off unless you are blocked.** You can disable it in pubspec.yaml or globally, but the docs say that option will not be allowed in the future.

4. **Update Firebase.** Firebase says most Flutter developers need no action beyond updating, because the update moves the Apple dependency manager to SwiftPM. Other native dependencies you manage through CocoaPods may need to be migrated by hand.

Once no plugin falls back, you can remove CocoaPods from the project entirely. Flutter's docs say to confirm every plugin supports SwiftPM before you do.

## The risks of standing still

Nothing breaks on day one. That is exactly why teams will put this off for a year, and it is where the cost hides.

### Pinned old pod versions

Every pod you get from trunk is now frozen at its last published version. Today that is fine. In twelve months, when a new Xcode or iOS release needs a fix in an SDK, the fix will ship through SwiftPM and you will not get it without migrating under pressure. Migrations done in a hurry the week a new iOS drops are the ones that go badly.

### Security fixes not arriving

This is the part I would not ignore. If a payments, auth or networking SDK ships a security patch, and your app pulls that SDK from trunk, you will not see the patch. No warning, no failed build. You will simply be running the old code. Firebase and Google Mobile Ads have already said future fixes ship through SwiftPM.

![Laptop screen showing colorful source code in an editor](https://images.unsplash.com/photo-1607799279861-4dd421887fb3?w=800&q=80)

### A private specs repo as a stopgap

CocoaPods still reads private specs repos, so a team can publish its own podspecs for an SDK that moved on and keep CocoaPods alive a little longer. It works, and it is a reasonable bridge for a large app with a release train you cannot pause. But someone now owns a registry, writes podspecs for vendor SDKs by hand and keeps them current. For a startup, that is time better spent on the migration itself.

### Libraries that never move

Some older libraries will never ship a Package.swift. You find them when you audit, not when you build. Budget time to replace them, and treat any library that has not moved by mid-2027 as abandoned.

## Which one for your product

Here is how I would call it for the situations founders bring to us most often:

- **A new native iOS app in Swift or SwiftUI:** Swift Package Manager from the first commit. There is no reason to start a project on CocoaPods now.

- **An existing native app with a handful of pods:** SwiftPM, migrated this quarter. Start with any SDK that touches payments, auth or ads.

- **A large native app with internal pods and a weekly release train:** SwiftPM as the target, with a private specs repo as a bridge for the few dependencies you cannot move yet. Consider Tuist if the project file is a source of pain.

- **A React Native app on a recent version:** CocoaPods today, because it is the supported default in 0.88. Audit trunk pods now and test the SwiftPM opt-in on a branch so you are ready when 0.89 makes it the default.

- **An Expo app using prebuild:** CocoaPods today, and let the SDK upgrade carry you over when Expo switches. Keep config plugins clean so the generated project stays generated.

- **A React Native app several versions behind:** upgrade React Native first. The dependency manager is the smaller problem.

- **A Flutter app:** SwiftPM, which you already have on 3.44 or later. Hunt down the plugins that fall back to CocoaPods.

- **A new cross-platform app starting now:** pick the framework for the product, not for the dependency manager. Both React Native and Flutter are heading to SwiftPM, and the gap closes within a release or two.

If you are still deciding what the iOS side of your product will cost to build or rebuild, our [iOS app development cost breakdown](/blog/how-much-does-ios-app-development-cost) lays out the real ranges and what drives them.

Kanopy helps founders pick a stack and build the product on it, from the first Figma screen to the App Store. If you want a second opinion on your iOS setup before the next SDK update forces the question, [book a free strategy call](/get-started).

---

*Originally published on [Kanopy Labs](https://kanopylabs.com/blog/cocoapods-vs-swift-package-manager-what-to-use-now-trunk-is-frozen)*
