惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
J
Java Code Geeks
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
量子位
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
腾讯CDC
I
InfoQ
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
爱范儿
爱范儿

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The CocoaPods Sunset: What Dec 2, 2026 Means for Your Rea...
Subrata Kuma · 2026-05-02 · via DEV Community

Introduction to CocoaPods

Before Swift Package Manager (SPM) became the native standard, the iOS world belonged to CocoaPods.

What is CocoaPods?

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. In simple terms, it’s a tool that automates the process of adding, updating, and managing third-party libraries (like Firebase, Alamofire, or Lottie) in your Xcode projects. Instead of manually dragging source files into your project and worrying about build settings, you define what you need in a single text file called a Podfile.

Who Created and Manages It?

  • Founders: It was started by Eloy Durán and Fabio Pelosin.
  • Management: The project is maintained by a core team of volunteers, including developers like Samuel Giddins, Danielle Lancashire, and others, with contributions from the broader open-source community.
  • Governance: While it is an open-source project hosted on GitHub, it operates through a centralized registry called the CocoaPods Trunk.

When Did It Start?

  • Release Date: Development began in August 2011, and the first public release was on September 1, 2011.
  • Inspiration: It was heavily inspired by the Ruby community's dependency managers, RubyGems and Bundler. This is why CocoaPods itself is built with Ruby and installed as a "gem".

Where and How is it Used?

  • Platforms: It supports almost the entire Apple ecosystem: iOS, macOS, watchOS, and tvOS.
  • The Workflow:
    1. Create a Podfile in your project directory.
    2. List your dependencies (e.g., pod 'Alamofire').
    3. Run pod install in your terminal.
    4. CocoaPods creates an .xcworkspace file, which you must use instead of the standard .xcodeproj to ensure all libraries are linked correctly.

Why was it a Game-Changer?

Before CocoaPods, integrating a library was a manual "nightmare" of copying files, managing header search paths, and manually linking frameworks. CocoaPods centralized this into a searchable hub (cocoapods.org) that now hosts over 100,000 libraries and is used in over 3 million apps.


The Sunset Era

Yes, CocoaPods is scheduled to move to a permanent read-only state on December 2, 2026.
After this date, the CocoaPods Trunk (the central registry) will no longer accept new Podspecs or updates to existing ones.

Why is CocoaPods Sunsetting?

Maintaining a package manager that serves millions of apps is a massive undertaking.

  • Volunteer Burnout: The project relies entirely on volunteers. The burden of keeping the infrastructure running, fixing bugs, and updating for every new Xcode release has outpaced the available resources.
  • Server Costs: Hosting the global CDN for hundreds of thousands of packages is incredibly expensive.
  • The Rise of SPM: Apple introduced Swift Package Manager (SPM) built directly into Xcode. With SPM now mature enough to handle complex dependency graphs, the community no longer needs a third-party tool for this primary function.

Key Impact on Developers

  • Existing Projects: Your current apps will not break immediately. Existing versions of libraries will remain accessible for installation as long as GitHub and jsDelivr stay operational.
  • New Updates: You will no longer be able to push new versions of your own libraries or receive updates for third-party dependencies through the official trunk.
  • Security & Compatibility: Since no new versions can be published, critical security patches or fixes for new iOS versions will eventually stop being delivered via CocoaPods.

Migration & Next Steps

The CocoaPods team and major library maintainers like Firebase recommend migrating to Swift Package Manager (SPM), which is Apple’s official and natively integrated solution for managing dependencies.

Timeline for 2026 Transition:

  • September–October 2026: Second round of notification emails to all contributors.
  • November 1–7, 2026: A test run of the read-only mode to identify potential automation breaks.
  • December 2, 2026: The Trunk becomes permanently read-only.

Impact on React Native Apps

For React Native projects, the 2026 CocoaPods read-only transition is a major shift because React Native has heavily relied on CocoaPods for iOS dependency management. However, the ecosystem is already pivoting to adapt.

Immediate Impact on React Native Apps

  • No Immediate Breakage: Your existing React Native apps using CocoaPods will continue to build and run after December 2026. The read-only state just means you cannot publish new Pods.
  • pod install Still Works: You will still be able to install existing versions of libraries. The underlying infrastructure (specs repo, CDN) will remain online.
  • Update Freeze: The real risk is that critical native modules (like react-native-maps, @react-native-firebase/app) will eventually stop receiving updates via CocoaPods. You won't get security patches or compatibility fixes for future iOS versions if you stay on CocoaPods.

The Path Forward: React Native & SPM

The React Native community and core team are actively moving towards Swift Package Manager (SPM) as the new standard.

  1. React Native 0.76+ and the New Architecture:
    With the rollout of the New Architecture (TurboModules and Fabric) becoming the default, library maintainers are rewriting their native code layers anyway. This provides the perfect window to drop CocoaPods support and adopt SPM entirely. Future versions of the React Native template will default to or strongly encourage SPM for native modules.

  2. Library Migration:

    • Major libraries like Firebase have already announced they will stop publishing to CocoaPods in October 2026 and require SPM for updates.
    • Popular community libraries (react-native-maps, sentry-react-native) are following suit, adding SPM support to their iOS installation instructions.

Summary of the Shift

Feature Earlier (CocoaPods) After SPM Transition
Tooling Requires Ruby, Gem, and CocoaPods Built directly into Xcode/Swift
Primary File Podfile & Podfile.lock Package.swift or Xcode Project settings
Install Step cd ios && pod install Automatic (on open) or CLI-handled via Autolinking
Project File Must use .xcworkspace Can go back to .xcodeproj
Maintenance Managed by community volunteers Managed by Apple natively

(Note for Dev.to readers: Knowing the change is coming is only half the battle. If you want to see the exact code snippets for Method A (spm_dependency), learn how React Native handles Autolinking with SPM, discover how to handle legacy libraries that won't update, and follow a step-by-step migration guide for your bare React Native apps, read the full technical migration guide on my blog.)