GitHub project

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 install warns 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 setupFirebase your app getsWhat to do
Swift Package Manager on, which is the default, with FlutterFire’s firebase_messagingThe version that your FlutterFire packages pin: Firebase 13 from firebase_core 5.0.0, and an older Firebase before thatNothing 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_messagingThe version that your FlutterFire packages pin, Firebase 12 at most, because there are no newer podsNothing 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 appFirebaseMessaging 12.19.0 at most with customer_io/fcm, because it’s the last FirebaseMessaging podNothing 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.swift needs 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’s Podfile template 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

  1. In your pubspec.yaml, update customer_io to 6.1.0 or later, and run flutter pub get.

  2. In your Podfile (ios/Podfile in a Flutter app), change the customer_io/fcm line to customer_io/fcm-core, and keep its path. In an add-to-app host app, that’s the path into your Flutter module.

    RUBY
    pod 'customer_io/fcm-core', :path => '.symlinks/plugins/customer_io/ios'
  3. Run pod install in the folder that has your Podfile (ios in a Flutter app). It removes the FirebaseMessaging pod.

  4. Open your app’s workspace in Xcode (ios/Runner.xcworkspace in a Flutter app), select your project, and open Package Dependencies. Click +, enter https://github.com/firebase/firebase-ios-sdk.git, choose Up to Next Major Version from 13.0.0, and click Add Package. Add the FirebaseMessaging product to your app target only: Runner, or your host app’s target.

  5. On Xcode 26.4 or later, select firebase-ios-sdk in 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.

  6. Build your app through that workspace, as flutter build ios does in a Flutter app. Commit your Podfile, your Podfile.lock, and your app’s project.pbxproj (ios/Runner.xcodeproj/project.pbxproj in a Flutter app). If you commit the workspace’s xcshareddata/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 install prints Xcodeproj doesn't know about the following attributes {"traits" => []}. You can ignore this warning.
  • When pod install rewrites 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. If git diff shows the traits lines removed from project.pbxproj, turn the trait off again.
  • The pod install warning 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 on firebase-ios-sdk, so check those yourself. flutter build ios only shows pod install’s output with -v or when it fails, so run pod install yourself after you change your Podfile or 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.

Updated December 6, 2026