The Swift SDK moves from CocoaPods to Swift Package Manager
The GrowthBook Swift SDK now installs through the Swift Package Manager. Version 1.3.4 of the GrowthBook-IOS pod is the last one published to CocoaPods. If your app installs the SDK from a Podfile, switch to the Swift package to receive later versions.
What changed
Earlier Swift SDK docs listed CocoaPods first and offered the Swift Package Manager as an alternative. The SDK's release process no longer publishes to CocoaPods, and the install docs now use only the Swift Package Manager, starting from version 2.0.0. CocoaPods Trunk itself becomes read-only on December 2, 2026.
Moving an existing app
The migration takes three steps:
- Remove
pod 'GrowthBook-IOS'from yourPodfileand runpod install. If it was your only pod, runpod deintegrateinstead. - Add the Swift package, either in Xcode or in
Package.swift. - Build. The module is still named
GrowthBook, so yourimport GrowthBookstatements don't change.
In a Package.swift, add the growthbook-swift package and its GrowthBook-IOS product. This excerpt uses MyApp as the target name:
Getting started
In Xcode, choose File → Add Package Dependencies… and enter https://github.com/growthbook/growthbook-swift. Choose Up to Next Major Version from 2.0.0, then add the GrowthBook-IOS library to your target. The Swift SDK docs cover installation and the full CocoaPods migration.