CocoaPods trunk stops accepting new podspecs on December 2, 2026. Existing pods keep installing, but libraries stop getting updates through it, and Google Sign-In 10.1.0 is already its last CocoaPods release. For an old iOS repo, list what the app really imports, delete unused pods, move the rest to Swift Package Manager, raise the deployment target to iOS 15, and fix the bugs the move uncovers.
CocoaPods trunk stops taking new podspecs on December 2, 2026. The test run already happened from November 2 to 6. If you have an old iOS project with a Podfile, the next three weeks are a good time to open it and see what it really depends on, because after that date the pods it uses won't get new versions through trunk.
I did that with two small repos from my own GitHub, both last touched in 2018. FoodLibrary is a UIKit food menu app that pulls in Hero, Alamofire and SwiftyJSON through CocoaPods 1.4.0. Login is an app shell that imports Google Sign-In and the Facebook SDK. Neither is a big codebase, which makes them good test cases: you can see every problem without digging through thousands of files.
What follows is what I found in each repo, the order I'd fix things in, and the code that replaces the old parts. One limit up front: I read both repos and ran a script against them on Linux. I didn't build them in Xcode for this post, so treat the code below as a starting point you compile yourself, and check each step against your own project.
What the freeze changes, and what it doesn't
The CocoaPods team's post on the Specs repo lays out the plan. Trunk stops accepting new podspecs on December 2, 2026, and the Specs repo on GitHub gets archived. The post says the change will "keep all existing builds working", and the CDN keeps serving specs while GitHub and jsDelivr keep running.
So nothing breaks on December 3. What stops is the flow of updates. If a library you depend on ships a security fix in 2027, it won't reach you through pod update unless the maintainer publishes it some other way. Google already says this plainly for its own SDK: in its migration note, Google Sign-In 10.1.0 is the last version published to CocoaPods, and later releases come through Swift Package Manager only.
There's a second deadline hiding in the same note. Google writes that Xcode 27 refuses to build any target whose iOS deployment target is below 15.0. Both of my repos target iOS 11. That alone means neither opens and builds cleanly in a current Xcode without changes, CocoaPods or not.
Step 1: list what the repo pulls in, and what it really uses
Before moving anything, find out which dependencies the app code imports. Old projects collect pods the way drawers collect cables. This script reads Podfile.lock, scans the app's own Swift files for imports (it skips the Pods/ folder), and prints the build settings that matter for a modern Xcode.
#!/usr/bin/env python3
"""List what a CocoaPods-era iOS repo depends on, and what it really uses.
Usage: python3 pod_audit.py path/to/repo
"""
import pathlib, re, subprocess, sys
repo = pathlib.Path(sys.argv[1])
files = [l for l in subprocess.run(["git", "-C", str(repo), "ls-files"],
capture_output=True, text=True).stdout.splitlines() if l]
pods_files = [f for f in files if f.startswith("Pods/")]
lock = repo / "Podfile.lock"
locked = {}
if lock.exists():
in_pods = False
for line in lock.read_text().splitlines():
if line.startswith("PODS:"):
in_pods = True
continue
if in_pods and line and not line.startswith(" "):
break
m = re.match(r"^ - ([A-Za-z0-9_\-/]+) \(([^)]+)\)", line)
if in_pods and m:
locked[m.group(1)] = m.group(2)
imports = {}
for f in files:
if f.endswith(".swift") and not f.startswith("Pods/"):
for line in (repo / f).read_text(errors="ignore").splitlines():
m = re.match(r"^\s*(?:@\w+\s+)*import\s+(?:(?:struct|class|enum|protocol|typealias|func|var|let)\s+)?([A-Za-z0-9_]+)", line)
if m:
imports.setdefault(m.group(1), set()).add(f)
APPLE = {"UIKit", "Foundation", "SwiftUI", "Combine", "CoreData",
"AVFoundation", "CoreLocation", "MapKit", "XCTest"}
third_party = {k: v for k, v in imports.items() if k not in APPLE}
pbx = next(repo.glob("*.xcodeproj/project.pbxproj"), None)
settings = {}
if pbx:
text = pbx.read_text(errors="ignore")
for key in ("SWIFT_VERSION", "IPHONEOS_DEPLOYMENT_TARGET"):
settings[key] = sorted(set(re.findall(key + r" = ([^;]+);", text)))
settings["framework refs"] = sorted(
set(re.findall(r"(\w+)\.framework", text)) - {"wrapper"})
print(f"repo: {repo.resolve().name}")
print(f"tracked files: {len(files)}, of which under Pods/: {len(pods_files)}")
print(f"Podfile present: {(repo / 'Podfile').exists()}, lock present: {lock.exists()}")
for name, version in locked.items():
used = name in imports
print(f" pod {name} {version}: {'imported' if used else 'NOT imported by app code'}")
for name, where in sorted(third_party.items()):
if name not in locked:
print(f" import {name}: no pod or package provides it ({len(where)} file)")
for key, values in settings.items():
print(f" {key}: {', '.join(values) if values else '(none)'}")
Here is what it printed for the two repos:
repo: FoodLibrary
tracked files: 220, of which under Pods/: 104
Podfile present: True, lock present: True
pod Alamofire 4.6.0: NOT imported by app code
pod Hero 1.1.0: imported
pod SwiftyJSON 4.0.0: NOT imported by app code
SWIFT_VERSION: 4.0
IPHONEOS_DEPLOYMENT_TARGET: 11.2
framework refs: Alamofire, Hero, Pods_AppsFoodLibary, SwiftyJSON
repo: Login
tracked files: 16, of which under Pods/: 0
Podfile present: False, lock present: False
import FBSDKLoginKit: no pod or package provides it (1 file)
import GoogleSignIn: no pod or package provides it (1 file)
SWIFT_VERSION: 4.0
IPHONEOS_DEPLOYMENT_TARGET: 11.4
framework refs: (none)
Two very different problems. FoodLibrary carries more than it needs: almost half of its tracked files are the committed Pods/ folder, and two of its three pods are never imported. Login has the opposite problem. It imports two SDKs, but nothing in the repo provides them, so a fresh clone can't build at all.
The script is crude on purpose. It only looks at import lines, so it will miss a pod that's used from Objective-C or through a bridging header. For a Swift-only app like these two, it's enough to decide what to move and what to delete.
What the audit script gets wrong, tested on a sample repo
The script was run again with Python 3.12 on a Mac, this time against a small sample repo made for the purpose, with a Podfile.lock listing Alamofire, the Firebase/Analytics subspec, lottie-ios and SwiftLint, and one Swift file importing Lottie, FirebaseAnalytics, StoreKit and WebKit, plus @_implementationOnly import Alamofire and import struct Foundation.URL. The first run turned up two bugs in the script itself:
- Run as
python3 pod_audit.py ., it printed an empty repo name, because the name of the path.is empty. - It reported Alamofire as "NOT imported by app code", because the import line starts with an attribute, and it reported a module called
struct, because it read the first word afterimport.
The script above now resolves the path before printing the name and skips attributes and import kinds in its pattern. With those two changes it printed:
repo: SampleApp
tracked files: 4, of which under Pods/: 0
Podfile present: True, lock present: True
pod Alamofire 5.9.1: imported
pod Firebase/Analytics 10.29.0: NOT imported by app code
pod FirebaseAnalytics 10.29.0: imported
pod lottie-ios 4.4.3: NOT imported by app code
pod SwiftLint 0.57.0: NOT imported by app code
import Lottie: no pod or package provides it (1 file)
import StoreKit: no pod or package provides it (1 file)
import WebKit: no pod or package provides it (1 file)
SWIFT_VERSION: 5.0
IPHONEOS_DEPLOYMENT_TARGET: 13.0
framework refs: (none)
The rest of that output is still wrong in instructive ways, and none of it can be fixed by a better pattern:
- lottie-ios shows as not imported, and
import Lottieshows as provided by nothing. The pod and the module have different names. WhenPods/is present, the module name is in the pod's.modulemapfile underPods/Target Support Files/. - Firebase/Analytics shows as not imported while FirebaseAnalytics shows as imported. The first is an umbrella subspec that pulls in the second, so they come out of the project together.
- SwiftLint is never imported because it is a build tool that runs from a build phase. Check the target's Build Phases before you delete a pod like this.
- StoreKit and WebKit show as imports with no provider, because the script's list of Apple frameworks is short. They are part of the iOS SDK and need nothing.
So treat "NOT imported" as a list of pods to check, not a list to delete, and build after each removal. A wrong deletion fails the build at once, which is the safe kind of failure. For the two repos in this post the script was right: neither uses a renamed pod, a build tool pod, or an attribute on an import line.
Repo 1: FoodLibrary
Delete before you migrate
The cheapest migration is removing a dependency. Alamofire and SwiftyJSON are installed, linked and committed, and no Swift file in the app imports either one. The data comes from a hard-coded array in DataService.swift, with no network calls at all.
That leaves Hero, the transition library, which two view controllers use to switch on hero.isEnabled. Hero's current Package.swift declares Swift Package Manager support with iOS 10 as the floor, so it can move over directly.
Here is the removal, run from the repo root. pod deintegrate is the step Google's own migration note recommends when you drop the last pod:
# 1. Take CocoaPods out of the Xcode project
pod deintegrate
# 2. Remove the files CocoaPods generated
git rm -r --cached Pods
rm -rf Pods Podfile Podfile.lock AppsFoodLibary.xcworkspace
# 3. From now on, open the .xcodeproj, not the workspace
open AppsFoodLibary.xcodeproj
Then in Xcode, choose File > Add Package Dependencies… (Apple's article spells it Add Package Dependency), paste https://github.com/HeroTransitions/Hero, and pick "Up to Next Major Version". Apple recommends the version rule over branch or commit rules. Commit the Package.resolved file Xcode creates, so anyone who clones the repo resolves the same Hero version you tested. If Xcode then complains about a missing package product, Fix "Missing Package Product" Errors in Xcode: 8 Solutions, Cheapest First walks through the fixes.
Hero went from 1.1.0 to 1.6.x, and the app only calls hero.isEnabled, so I'd expect this part to compile with few changes. Build it and see before assuming.
The Category screen never shows its data
The migration made me read the rest of the code, and that turned up a bug that has nothing to do with package managers. CategoryViewController implements numberOfSections, numberOfRowsInSection and cellForRowAt. It even declares itself a UITableViewDataSource in an extension. But nothing connects the table to it. The .xib has outlets for tableView1 and two views, with no dataSource or delegate connection, and viewDidLoad never sets one either.
A table view with no data source shows zero rows. So every tap on a food category opens a screen with an empty table.
The section header code has its own problem. The header and height methods are written as private func tableView(...). UIKit finds those optional methods through Objective-C, and a private method in a class that doesn't even declare UITableViewDelegate will never be called. So even with the data source fixed, the collapsible headers wouldn't appear.
The data itself is a leftover too. The collapsible table code came from Yong Su's MIT-licensed ios-swift-collapsible-table-section sample, and the copied ExampleData.swift still holds that sample's single section, "Mac", with MacBook, iPad Pro and iPhone 6s rows. A food app would show Apple products, if it showed anything. Keeping the original copyright headers was the right call. If you copy sample code like this, keep the license file or notice with it.
Here's the smallest fix that makes the screen work, written for Swift 5:
import UIKit
import Hero
final class CategoryViewController: UIViewController {
@IBOutlet weak var tableView1: UITableView!
var sections = sectionsData
override func viewDidLoad() {
super.viewDidLoad()
tableView1.dataSource = self
tableView1.delegate = self
tableView1.estimatedRowHeight = 30
tableView1.rowHeight = UITableView.automaticDimension
}
}
extension CategoryViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView,
viewForHeaderInSection section: Int) -> UIView? {
let header = tableView.dequeueReusableHeaderFooterView(withIdentifier: "header")
as? CollapsibleTableViewHeader
?? CollapsibleTableViewHeader(reuseIdentifier: "header")
header.titleLabel.text = sections[section].name
header.setCollapsed(sections[section].collapsed)
header.section = section
header.delegate = self
return header
}
func tableView(_ tableView: UITableView,
heightForHeaderInSection section: Int) -> CGFloat {
44
}
}
Two more things in the header class need attention once headers show up. It pins the header's content view to a fixed width of 343 points and a height of 245 points, while the controller asks for a 44-point header. Those constraints fight each other, and on any phone that isn't 375 points wide the width one is wrong anyway. Remove both and let the margins guide do the layout. The arrow rotation also uses isRemovedOnCompletion = false with a forwards fill mode, which leaves the layer's real transform unchanged. Setting arrowLabel.transform inside a UIView.animate block is simpler and survives header reuse.
Every category opens the same screen
HomeViewController pushes CategoryViewController() from didSelectItemAt and ignores the index path. The lines that would pass the tapped category along are commented out. Steak and Dessert open the same screen with the same data. If you keep this app, give CategoryViewController an initializer that takes a Category, and filter the menu by it. If you don't, a commented-out feature is a good reason to say so in the README.
Swift 4 names to rename when you move to Swift 5
The project sets SWIFT_VERSION = 4.0, and the code uses names from before the Swift 4.2 SDK renames. Xcode's migrator handles most of these, but it helps to know what's coming:
UIApplicationLaunchOptionsKeybecameUIApplication.LaunchOptionsKey.UITableViewAutomaticDimensionbecameUITableView.automaticDimension.UITableViewCellStylebecameUITableViewCell.CellStyle.kCAFillModeForwardsbecameCAMediaTimingFillMode.forwards.
Then there's @UIApplicationMain. Swift Evolution proposal SE-0383, implemented in Swift 5.10, deprecated it: a hard error in Swift 6 mode, and a warning in Swift 5 mode only when the DeprecateApplicationMain upcoming feature is turned on. Replace it with @main, which the compiler's fix-it does for you.
Last, the deployment target. The project says iOS 11.2 and the old Podfile says iOS 9.0. Per Google's note above, Xcode 27 won't build below iOS 15, so raise the target to 15.0 or higher in the target's General tab. That's a product decision as much as a technical one, because it drops older devices. For a demo app like this one, it costs nothing.
The Info.plist also names new.storyboard as both the launch screen and the main storyboard, while AppDelegate creates its own window and root controller in code. UIKit loads the main storyboard's initial view controller first, then the delegate throws that window away. Remove the UIMainStoryboardFile key so only the code path runs.
The Swift 4 names, checked with today's compiler
The rename list above was checked with the Swift 6.2.3 compiler in Xcode 26.2, against the iOS Simulator SDK with an iOS 15 deployment target. A small app delegate written with the old names failed in both the Swift 5 and Swift 6 language modes, with one error per name, each with the new name in the message:
'UIApplicationLaunchOptionsKey' has been renamed to 'UIApplication.LaunchOptionsKey''UITableViewCellStyle' has been renamed to 'UITableViewCell.CellStyle''UITableViewAutomaticDimension' has been renamed to 'UITableView.automaticDimension''kCAFillModeForwards' has been renamed to 'CAMediaTimingFillMode.forwards'
These are errors, not warnings, so a Swift 4 era project will not build until every one is fixed, but each comes with a fix-it, which makes the work mechanical. The same file with the new names and @main type-checked with no errors or warnings in both modes.
@UIApplicationMain behaved a little differently from how SE-0383 is often summarized. In Swift 6 mode it was an error, "'UIApplicationMain' is deprecated". In Swift 5 mode it compiled with no warning at all. The warning appeared only after adding -enable-upcoming-feature DeprecateApplicationMain, and it read "'UIApplicationMain' is deprecated; this is an error in the Swift 6 language mode". So a project that stays in Swift 5 mode gives you no hint, and the change only surfaces on the day you switch to Swift 6. Replace it with @main while you are fixing the renames anyway.
Repo 2: Login
It can't build from a clone
The Login repo has an AppDelegate, two empty view controllers, two .xib files with no buttons in them, and a credentials.plist. The delegate imports GoogleSignIn and FBSDKLoginKit, but the repo has no Podfile, no Package.swift and no framework references in the Xcode project. Whatever made it build in 2018 lived only on that machine.
This is common in old repos, and in AI-built apps too: the code compiles on the laptop that made it and nowhere else. The fix is to declare the dependencies in the project, and today that means Swift Package Manager for both SDKs. Google's package lives at https://github.com/google/GoogleSignIn-iOS (product GoogleSignIn), and Meta's at https://github.com/facebook/facebook-ios-sdk, where the products are named FacebookCore and FacebookLogin. Both packages declare iOS 15 as their minimum in Package.swift, which lines up with the Xcode 27 floor anyway.
The 2018 Google Sign-In code is several major versions old
The delegate does this at launch:
GIDSignIn.sharedInstance().clientID = "…apps.googleusercontent.com"
Google's migration guide lists what changed since. Version 6.0 turned sharedInstance() into a property, moved the client ID into a GIDConfiguration object and removed the GIDSignInDelegate protocol. Version 7.0 recommends putting the client ID in Info.plist under the GIDClientID key and renamed sign-in to signIn(withPresenting:completion:).
That delegate removal matters here. The repo's AppDelegate has a sign(_:didDisconnectWith:withError:) method, but the class never adopted GIDSignInDelegate, so even in 2018 nothing called it. In current versions that callback doesn't exist at all. Disconnect handling now goes in the completion of disconnect(completion:).
The Info.plist is missing two things Google's setup guide calls required: the GIDClientID key and a URL type whose scheme is your reversed client ID. Without the URL scheme, the browser sign-in flow has no way to return to the app.
The Facebook code calls the wrong method in the wrong place
The delegate calls FBSDKAppEvents.activateApp() from applicationWillResignActive, which is the moment the app goes inactive, the opposite of activation. The current SDK's own ApplicationDelegate logs activation from its did-become-active handler when automatic event logging is on. You can drop the manual call.
URL handling has a quieter bug. The delegate implements both the modern application(_:open:options:) and the old application(_:open:sourceApplication:annotation:). UIKit calls the options version when it exists, and that version only passes the URL to Google. The Facebook handler sits in the old method, so a Facebook login redirect would never reach the SDK.
The Facebook SDK also reads FacebookAppID and FacebookClientToken from Info.plist. The current SDK logs an "Invalid Facebook Client Token configuration" error when the token is missing. Neither key is in this repo.
A current AppDelegate for both SDKs
This is what I'd replace the delegate with, using the current APIs from both packages. It moves the client ID to Info.plist and sends every incoming URL to both SDKs:
import UIKit
import GoogleSignIn
import FacebookCore
@main
final class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
ApplicationDelegate.shared.application(
application, didFinishLaunchingWithOptions: launchOptions)
// Google reads GIDClientID from Info.plist.
GIDSignIn.sharedInstance.restorePreviousSignIn { user, error in
// Show the home screen if user != nil, the login screen if not.
}
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController =
UINavigationController(rootViewController: LoginViewController())
window?.makeKeyAndVisible()
return true
}
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
) -> Bool {
if GIDSignIn.sharedInstance.handle(url) { return true }
return ApplicationDelegate.shared.application(app, open: url, options: options)
}
}
And the Info.plist entries, with placeholders where your own values go:
<key>GIDClientID</key>
<string>YOUR_IOS_CLIENT_ID.apps.googleusercontent.com</string>
<key>FacebookAppID</key>
<string>YOUR_FACEBOOK_APP_ID</string>
<key>FacebookClientToken</key>
<string>YOUR_CLIENT_TOKEN</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.YOUR_IOS_CLIENT_ID</string>
<string>fbYOUR_FACEBOOK_APP_ID</string>
</array>
</dict>
</array>
The sign-in button itself goes in LoginViewController, calling GIDSignIn.sharedInstance.signIn(withPresenting: self) and reading the user from the result in its completion.
Before this goes to App Review
A login screen with only Google and Facebook buttons runs into Guideline 4.8. If an app uses a third-party or social login to set up the user's primary account, it must also offer an equivalent login service that limits data collection to name and email, lets users keep their email private, and doesn't collect interactions for advertising without consent. Sign in with Apple meets that. The guideline has exceptions, such as apps that only use the company's own account system, but a consumer app with social login usually isn't one of them. Plan the third button now, while you're rewriting the screen anyway. Guideline 2.1 Rejection: Why Your AI-Built App Crashed in App Review covers another rejection that old projects often run into.
The order I'd do it in
If you have a repo like either of these, this is the sequence that wastes the least time:
- Run an import audit like the script above, and delete every pod the app never imports.
- Run
pod deintegrate, removePods/, the Podfile, the lock file and the workspace, and stop committing generated dependency folders. - Add the remaining libraries through File > Add Package Dependencies…, with version rules, and commit
Package.resolved. - Raise the deployment target to iOS 15 or later and the Swift version to 5, then let the migrator fix the renamed APIs.
- Read the SDK migration guides for every major version you skipped. Google Sign-In is on version 10 now, while 2018 code was written for 4.x or 5.x. The Facebook SDK also moved to Swift-first modules.
- Fix the bugs the move uncovers. In FoodLibrary that meant a table with no data source and headers that never render.
- Check the App Review rules that apply to what the app does, like 4.8 for social login.
If one pod has no Swift package at all, you can stay on CocoaPods for now. The freeze doesn't stop existing versions from installing. Google's note also says not to mix CocoaPods and Swift Package Manager copies of the same library in one target, which causes dependency cycles and build errors, so move shared dependencies together.
A kit for doing this with Claude Code
If you'd rather have an AI coding agent do the grunt work of a migration like this, it helps when the agent understands how your project is put together before it edits anything. My Claude Code + Xcode: The Production iOS Workflow Kit ($18 on Gumroad) is built for that step: getting Claude Code to understand an existing iOS codebase's architecture and state ownership so you stop re-explaining it on every prompt. You can find it here: Claude Code + Xcode: The Production iOS Workflow Kit.
Keep reading on JR Devhub
Sources
- CocoaPods Specs Repo (CocoaPods blog)
- Migrating from CocoaPods to Swift Package Manager (GoogleSignIn-iOS)
- Google Sign-In for iOS: quick migration guide
- Google Sign-In for iOS: get started
- Adding package dependencies to your app (Apple)
- App Review Guidelines, 4.8 Login Services (Apple)
- SE-0383: Deprecate @UIApplicationMain and @NSApplicationMain
- Hero Package.swift
- Facebook iOS SDK Package.swift
- jerrypm/FoodLibrary and jerrypm/Login

Comments