Upgrade from 6.x to 6.1.0
If your iOS app uses FCM, version 6.1.0 of the Customer.io Flutter SDK points you to Firebase 13 through Swift Package Manager, or through the customer_io/fcm-core subspec with Firebase's Swift package. If your app uses customer_io/fcm, it keeps working, and you don't need to change anything.
What changed?
Firebase stopped publishing CocoaPods pods after version 12.19. Firebase 13 and later are only available as a Swift package.
- If your app uses
pod 'customer_io/fcm', you don’t need to change anything. It keeps installing the FirebaseMessaging pod. FirebaseMessaging 12.19.0 is the last pod that Firebase published, so your app doesn’t get any more FirebaseMessaging fixes. If your app uses FlutterFire’s pods, it gets the FirebaseMessaging version that FlutterFire pins. - When you want Firebase 13, find your setup in the table below.
pod installwarns when an app target lists the FirebaseMessaging product from Firebase’s Swift package and also gets the FirebaseMessaging pod, and says which change fixes it. The warning doesn’t stop the install.
Find your setup
| Your setup | Firebase your app gets | What to do |
|---|---|---|
Swift Package Manager on, which is the default, with FlutterFire’s firebase_messaging | The version that your FlutterFire packages pin: Firebase 13 from firebase_core 5.0.0, and an older Firebase before that | Nothing in the plugin. The plugin’s Swift package links FCM without Firebase, so when you upgrade FlutterFire, you upgrade Firebase. For Firebase 13, use firebase_core 5.0.0 and firebase_messaging 17.0.0 or later. Firebase 13 needs Xcode 26.2 or later. |
CocoaPods, with FlutterFire’s firebase_messaging | The version that your FlutterFire packages pin, Firebase 12 at most, because there are no newer pods | Nothing today. customer_io/fcm and customer_io/fcm-core both use FlutterFire’s FirebaseMessaging pod. For Firebase 13, turn on Swift Package Manager for your app, upgrade to firebase_core 5.0.0 and firebase_messaging 17.0.0 or later, and remove the customer_io lines from ios/Podfile. Firebase 13 needs Xcode 26.2 or later. See Swift Package Manager with leftover pod lines. Add-to-app modules install plugins with CocoaPods, so a host app with FlutterFire stays on Firebase 12 for now. |
| CocoaPods, without FlutterFire, like an add-to-app host app | FirebaseMessaging 12.19.0 at most with customer_io/fcm, because it’s the last FirebaseMessaging pod | Nothing today. For Firebase 13, follow the steps below. |
Before you move
These steps are for apps that build with CocoaPods without FlutterFire.
Requirements
- Xcode 26.2 or later, because Firebase 13’s
Package.swiftneeds it, and iOS 15, which the plugin already needs. - Your builds download Firebase from github.com, and its binaries from dl.google.com.
- Firebase doesn’t need
use_frameworks!anymore. Keep it if your other pods need it, as Flutter’sPodfiletemplate does.
Check your other pods
customer_io/fcm brings FirebaseMessaging and the pods it depends on: FirebaseCore, FirebaseCoreInternal, FirebaseInstallations, GoogleDataTransport, GoogleUtilities, nanopb, and PromisesObjC. In your Podfile.lock, check whether any other pod depends on one of them, like FlutterFire’s firebase_* plugins, Google Sign-In through AppCheckCore, or ML Kit.
Firebase’s Swift package brings its own copies of those libraries, so next to one of those pods, your app can fail to build with Redefinition of module 'FBLPromises', or link two copies. If your app has one, stay on pods for now. Keep customer_io/fcm, or use customer_io/fcm-core with FlutterFire’s or your own Firebase pods.
Move to Firebase’s Swift package
-
In your
pubspec.yaml, updatecustomer_ioto 6.1.0 or later, and runflutter pub get. -
In your
Podfile(ios/Podfilein a Flutter app), change thecustomer_io/fcmline tocustomer_io/fcm-core, and keep its path. In an add-to-app host app, that’s the path into your Flutter module.RUBYpod 'customer_io/fcm-core', :path => '.symlinks/plugins/customer_io/ios' -
Run
pod installin the folder that has yourPodfile(iosin a Flutter app). It removes the FirebaseMessaging pod. -
Open your app’s workspace in Xcode (
ios/Runner.xcworkspacein a Flutter app), select your project, and open Package Dependencies. Click +, enterhttps://github.com/firebase/firebase-ios-sdk.git, choose Up to Next Major Version from13.0.0, and click Add Package. Add the FirebaseMessaging product to your app target only:Runner, or your host app’s target. -
On Xcode 26.4 or later, select
firebase-ios-sdkin Package Dependencies, and turn off its Firestore trait unless your app uses Firestore. The trait is on by default, and it makes Xcode download nearly 1 GB more for gRPC and its dependencies, even when your app only uses FirebaseMessaging. -
Build your app through that workspace, as
flutter build iosdoes in a Flutter app. Commit yourPodfile, yourPodfile.lock, and your app’sproject.pbxproj(ios/Runner.xcodeproj/project.pbxprojin a Flutter app). If you commit the workspace’sxcshareddata/swiftpm/Package.resolved, commit it too.
You don’t need to change your AppDelegate code: keep import FirebaseCore, import FirebaseMessaging, and FirebaseApp.configure(). For the Firebase calls that your app makes itself, check Firebase’s iOS release notes from version 12 to 13.
After later pod install runs
- Once the Firestore trait is off,
pod installprintsXcodeproj doesn't know about the following attributes {"traits" => []}. You can ignore this warning. - When
pod installrewrites your Xcode project, like when it first integrates a new target, it drops the trait setting, and your next build downloads Firestore’s dependencies again. Ifgit diffshows thetraitslines removed fromproject.pbxproj, turn the trait off again. - The
pod installwarning about an app target that gets FirebaseMessaging both as a pod and from Firebase’s Swift package doesn’t cover FirebaseMessaging that comes through another Swift package, like one of your own that depends onfirebase-ios-sdk, so check those yourself.flutter build iosonly showspod install’s output with-vor when it fails, so runpod installyourself after you change yourPodfileor the package.
Troubleshooting
Your app stops at launch with MessagingPushFCM needs FirebaseMessaging, but it isn't linked into the app
The FirebaseMessaging product isn’t on your app target. Add it as described in Move to Firebase’s Swift package.
Redefinition of module 'FBLPromises', or Class FIR... is implemented in both in the console
Your app gets Firebase or its Google libraries both from pods and from Firebase’s Swift package. See Check your other pods.