> This page is part of the [Customer.io documentation](https://docs.customer.io). For the complete index, see [llms.txt](https://docs.customer.io/llms.txt).
> Last updated: December 3, 2026
> To take actions in Customer.io from an agent, use the [Customer.io CLI](https://docs.customer.io/ai/cli/get-started.md) or the [MCP server](https://docs.customer.io/ai/mcp/get-started.md).

# Upgrade from 4.x to 5.0.0

Version 5.0 of the Customer.io Expo plugin requires version 8 of `customerio-reactnative`, which installs the Customer.io iOS SDK as a Swift package instead of CocoaPods pods. Your app still builds with CocoaPods, including on EAS Build.

## What changed?

CocoaPods’ central repository (trunk) stopped accepting new versions on December 2, 2026, so Customer.io publishes new versions of the iOS SDK only as a Swift package. Version 5.0 of the Expo plugin works with version 8 of `customerio-reactnative`, which gets the iOS SDK from that Swift package instead of from CocoaPods pods.

Your app keeps building with CocoaPods, on EAS Build too. Your JavaScript code, your Android build, and your plugin options stay the same, except for the plugin’s `ios.useFrameworks` option, which no longer does anything.

*   **The plugin requires `customerio-reactnative` 8.** Use version 5.0.3 or later of the plugin, which works with any 8.x version of `customerio-reactnative`. Versions 5.0.1 and 5.0.2 only work with 8.0.x, and 5.0.0 only with 8.0.0. If you run prebuild with an older `customerio-reactnative`, prebuild stops with a message.

*   **Your app does not install Customer.io pods.** React Native installs the `customerio-reactnative` pod for you, and that pod adds the iOS SDK as a Swift package.

*   **Your push provider and optional modules are Podfile switches.** Each time you run prebuild, the plugin writes this block at the top of `ios/Podfile` from your push, `location`, `geofence`, and live notifications settings. As in 4.x, your app links only the push module for your provider (or no push module if `ios.pushNotification` is unset).

    ```
    # --- CustomerIO Module Switches START ---
    # Read by the customerio-reactnative podspec to choose the Customer.io iOS modules it links.
    $customerio_push_provider = 'apn'
    $customerio_location_enabled = true
    $customerio_geofence_enabled = true
    $customerio_live_activities_enabled = true
    # --- CustomerIO Module Switches END ---
    ```

*   **The extensions use the Swift package.** The Notification Service Extension (for rich push) and the Live Activity widget get `https://github.com/customerio/customerio-ios.git` in your app’s Xcode project, with a range up to the next major version, so they resolve to the same iOS SDK version as your app. Their code doesn’t change.

*   **Your build needs Xcode 16 or later, and access to GitHub.** See [Xcode and network access](#xcode-and-network).

### Xcode and network access

These apply to local builds and to EAS Build.

The Customer.io iOS SDK’s Swift package needs Xcode 16 or later, because one of the packages it depends on requires Swift 6 tools. Your framework might need a later version. For example, React Native 0.81 and later need Xcode 16.1 or later. If you send push notifications through FCM, you should also check Firebase’s [iOS release notes ↗](https://firebase.google.com/support/release-notes/ios) for the Xcode version that your Firebase release needs.

Xcode downloads the SDK and the packages it depends on from GitHub when it resolves packages. If your build machines or CI can’t reach github.com, allow access to these repositories or mirror them:

*   `https://github.com/customerio/customerio-ios`
*   `https://github.com/customerio/cdp-analytics-swift`
*   `https://github.com/customerio/jist`
*   `https://github.com/LaunchDarkly/swift-eventsource`
*   `https://github.com/segmentio/sovran-swift`
*   `https://github.com/segmentio/jsonsafeencoding-swift`

If you commit `Package.resolved`, update it after each SDK update. Resolve packages once for the workspace or project that your CI builds, without `-onlyUsePackageVersionsFromResolvedFile` or `-disableAutomaticPackageResolution`, and commit the updated file. CI builds that use those options need the updated file to find the new SDK version.

```
xcodebuild -resolvePackageDependencies -workspace ios/YourApp.xcworkspace -scheme YourApp
```

Cache the packages on your CI

A build that starts without a cached copy of these packages, like one on a new CI runner, downloads them each time. To keep them between builds, pass `-clonedSourcePackagesDirPath` to `xcodebuild` with a folder that your CI caches.

## Firebase Cloud Messaging (FCM)

If you send iOS push notifications through FCM, your setup depends on where your app’s Firebase comes from.

### Firebase from the plugin or from CocoaPods

Leave `ios.pushNotification.useFirebaseFromApp` unset. Like the 4.x plugin, `customerio-reactnative` adds the FirebaseMessaging pod. Firebase pods that your app installs itself share that pod. This includes React Native Firebase when you switch it to CocoaPods with its `ios.disableSPM` option.

As in 4.x, Firebase’s pods need `ios.useFrameworks` set to `static` or `dynamic` in `expo-build-properties`. Without it, `pod install` stops with `The following Swift pods cannot yet be integrated as static libraries`.

### Firebase from Swift packages

Set `ios.pushNotification.useFirebaseFromApp` to `true` if your app’s FirebaseMessaging comes from Swift packages, as it does with React Native Firebase 26.1 and later by default. Without this option, your app links two copies of Firebase and the build fails. Prebuild warns you when React Native Firebase is installed and the option isn’t set.

With `useFirebaseFromApp`, `customerio-reactnative` doesn’t add Firebase on its own and uses your app’s Firebase. Your app must include FirebaseMessaging itself, not only FirebaseCore or Analytics. With React Native Firebase, install `@react-native-firebase/messaging`. Without FirebaseMessaging, the iOS build stops with `no such module 'FirebaseMessaging'`.

React Native Firebase in its Swift Package Manager mode also needs:

*   **Version 26.3.3 or later.** Version 27 supports only this mode. With versions 26.1 to 26.3.2, a fresh build fails at launch with `Library not loaded: @rpath/Firebase.framework/Firebase`. This happens with or without Customer.io, and EAS Build always makes a fresh build.
*   **Dynamic frameworks.** Set `ios.useFrameworks` to `dynamic` in `expo-build-properties`. With `static`, `pod install` stops.
*   **Your Firebase config files in Expo’s fields.** React Native Firebase’s plugins read `expo.ios.googleServicesFile` and `expo.android.googleServicesFile`, and prebuild stops for a platform whose field is missing. If you set your `GoogleService-Info.plist` path in the Customer.io plugin’s `ios.pushNotification.googleServicesFile`, keep that file outside your `ios` folder, point `expo.ios.googleServicesFile` at it, and remove the Customer.io setting. If you commit your `ios` folder, also delete the `ios/GoogleService-Info.plist` copy that earlier versions of the plugin made, and remove it from the *Resources* group in Xcode. React Native Firebase adds its own copy, so otherwise your app gets two.

```
{
  "expo": {
    "ios": {
      "googleServicesFile": "./GoogleService-Info.plist"
    },
    "android": {
      "googleServicesFile": "./google-services.json"
    },
    "plugins": [
      "@react-native-firebase/app",
      "@react-native-firebase/messaging",
      [
        "expo-build-properties",
        { "ios": { "useFrameworks": "dynamic" } }
      ],
      [
        "customerio-expo-plugin",
        {
          "ios": {
            "pushNotification": {
              "provider": "fcm",
              "useFirebaseFromApp": true
            }
          }
        }
      ]
    ]
  }
}
```

If you’re on React Native Firebase 26.2 to 26.3.2 and can’t update it, switch it to CocoaPods with its own plugin option instead, and leave `useFirebaseFromApp` unset. React Native Firebase 26.1 doesn’t have this option, so update it.

```
["@react-native-firebase/app", { "ios": { "disableSPM": true } }]
```

This option adds `$RNFirebaseDisableSPM = true` to your Podfile each time you run prebuild. Don’t add that line by hand, because a clean prebuild, like the one EAS Build runs, removes it.

## The plugin’s `ios.useFrameworks` option is deprecated

The plugin’s `ios.useFrameworks` option only set the linkage of the extensions’ pods, and the extensions don’t use pods anymore. Remove it from your plugin options. Prebuild prints a warning while it’s set. Keep setting your app’s linkage with `ios.useFrameworks` in `expo-build-properties`, as before.

## Upgrade process

Like 4.x, version 5.0 of the plugin needs Expo SDK 54 or later. See [Minimum requirements](https://docs.customer.io/integrations/sdk/expo/getting-started/how-it-works/#minimum-requirements).

If you archive release builds yourself and pass one signing identity to every target, like fastlane’s `codesigning_identity`, change that before your first release archive. See [Release archive fails to sign `Customer.io_` targets](https://docs.customer.io/integrations/sdk/expo/getting-started/troubleshooting/#package-bundle-signing).

1.  Install the latest 5.x version of the plugin with the latest 8.x version of `customerio-reactnative`:

    ```
    npm install customerio-expo-plugin@5 customerio-reactnative@8
    ```

2.  Remove `ios.useFrameworks` from your `customerio-expo-plugin` options. If you use FCM with React Native Firebase, check [the Firebase settings](#firebase).

3.  Update your iOS project:

    *   **If you don’t commit your `ios` folder**, which is the default Expo setup, EAS Build runs prebuild for you, so build as usual. To build on your own machine, run `npx expo prebuild --clean --platform ios` first.
    *   **If you commit your `ios` folder**, EAS Build skips prebuild, so follow [Update a committed `ios` folder](#with-ios-folder) and commit the result.

### Update a committed `ios` folder

1.  Commit your current `ios` folder, so you can review what prebuild changes. Then update your iOS project in place, which keeps most of your own changes. Prebuild still replaces the files that the plugin generates, like `CioSdkAppDelegateHandler.swift` in your app’s folder and `CIOLiveActivityWidgetBundle.swift` in the `CIOLiveActivityWidget` folder, even if you edited them.

    On Expo SDK 57 and later, run:

    ```
    npx expo prebuild --no-clean --platform ios
    ```

    Expo SDK 56 and earlier don’t have the `--no-clean` option, so run:

    ```
    npx expo prebuild --platform ios
    ```

    From Expo SDK 57, `npx expo prebuild` without `--no-clean` deletes and recreates your native folders, including `android` unless you pass `--platform ios`. If you haven’t changed your `ios` folder yourself, you can run `npx expo prebuild --clean --platform ios` instead.

    If prebuild warns that the `NotificationService` extension isn’t linked to the Customer.io Swift package, see [Troubleshooting](#troubleshooting) before you continue.

2.  Install pods. CocoaPods removes the old Customer.io pods and the pod setup it added to your extensions.

    ```
    cd ios && pod install
    ```

3.  Check the result:

    *   `ios/Podfile` has the module switches block and no `pod 'customerio-reactnative...'` or `pod 'CustomerIO...'` lines.
    *   `ios/Podfile.lock` doesn’t list any `CustomerIO`, `CioFirebaseWrapper`, or `customerio-reactnative-richpush` pods.
    *   If you set `ios.pushNotification.useRichPush` to `true` or turned on live notifications, your app project’s *Package Dependencies* in Xcode lists `customerio-ios`, and the extension targets for those features, `NotificationService` and `CIOLiveActivityWidget`, list its products under *Frameworks and Libraries*.
    *   `git diff` doesn’t show prebuild removing your own changes. If prebuild replaced a file that you had edited, add your changes back.
4.  Build your app once, so Xcode resolves the Swift packages and writes `ios/<YourApp>.xcworkspace/xcshareddata/swiftpm/Package.resolved`.

5.  Commit the `ios` folder, including the changed `Podfile`, `Podfile.lock`, `project.pbxproj`, and `Package.resolved` files.

## Later `customerio-reactnative` updates

Version 5.0.3 and later of the plugin accept any 8.x version of `customerio-reactnative`, so you can update `customerio-reactnative` without updating the plugin. Versions 5.0.1 and 5.0.2 accept any 8.0.x version, so you can install 8.0.x releases without updating the plugin, and you need 5.0.3 or later for newer 8.x versions. Version 5.0.0 only accepts 8.0.0, so update the plugin whenever you update `customerio-reactnative`. For a new major version, update the two packages together. To check which versions a plugin release accepts, see [npm version conflict when installing or updating](https://docs.customer.io/integrations/sdk/expo/getting-started/troubleshooting/#npm-version-conflict).

If you don’t commit your `ios` folder, prebuild picks up the new versions on your next build. If you commit it:

*   When the new `customerio-reactnative` uses another iOS SDK version with the same major version, run `pod install`. The extensions resolve to the version your app’s pod asks for. Build once, then commit the updated `Podfile.lock` and `Package.resolved`.
*   When the new `customerio-reactnative` uses a new major version of the iOS SDK, [update your committed `ios` folder](#with-ios-folder) again, so the extensions accept it. Until you do, Xcode can’t resolve the Swift packages, because your app’s pod and your extensions ask for versions that don’t overlap.

## Troubleshooting

*   **Prebuild stops with `needs customerio-reactnative 8.0.0 or later`**: Update the plugin to the latest 5.x version and `customerio-reactnative` to the latest 8.x version, as in the [upgrade steps](#upgrade-process), or keep using version 4.x of the plugin.
*   **Prebuild stops with `customerio-expo-plugin needs Expo SDK 53 or later`**: The plugin doesn’t support Expo SDK 52 and earlier, where the Customer.io SDK doesn’t work on iOS. Upgrade to Expo SDK 54 or later. See [Minimum requirements](https://docs.customer.io/integrations/sdk/expo/getting-started/how-it-works/#minimum-requirements).
*   **Prebuild stops with `customerio-expo-plugin supports Expo's CocoaPods iOS build`**: Your app config turns on Expo’s Swift Package Manager preview (`experiments.swiftPackageManager`), and the plugin passes your settings to `customerio-reactnative` through the `Podfile`, which only the CocoaPods build reads. Turn the preview off and run prebuild again, in place if you commit your `ios` folder. If an earlier prebuild already converted your project to Swift Package Manager, Expo asks you to run `npx expo prebuild --clean --platform ios`. That recreates your `ios` folder, so commit your own changes to it first, and add them back afterward.
*   **Prebuild stops with `Disabling Customer.io Live Notifications in an existing iOS project requires a clean prebuild`**: You turned live notifications off in a project that an earlier prebuild generated with them on. Commit your own changes to your `ios` folder, run `npx expo prebuild --clean --platform ios` so Expo removes the widget target, and add your changes back afterward.
*   **Your own pods are inside a Customer.io block in `ios/Podfile`** (between `# --- CustomerIO ... START ---` and `END` lines): Prebuild removes the Customer.io lines and keeps your pods in their target. The block keeps its `use_frameworks!` line, which the plugin doesn’t update anymore, so keep it matching `ios.useFrameworks` in `expo-build-properties`.
*   **Prebuild warns `The NotificationService extension isn't linked to the Customer.io Swift package`**: Your existing `NotificationService` target doesn’t link the Customer.io push product, so prebuild kept the earlier rich push pod in `ios/Podfile`. Commit or save your own changes to your `ios` folder, run `npx expo prebuild --clean --platform ios` to regenerate the extension, and add your changes back afterward.
*   **Building `Pods.xcodeproj` fails with `Packages are not supported when using legacy build locations`**: The `customerio-reactnative` pod now includes a Swift package. CocoaPods’ `Pods.xcodeproj` uses legacy build locations, so Xcode can’t build that package when you build `Pods.xcodeproj` by itself, as some scripts and pod caching tools do. Build your app’s `.xcworkspace` instead.
*   **Prebuild warns `Found # --- CustomerIO ... START --- without ... END`**: Someone edited a Customer.io block in `ios/Podfile` by hand. Delete what’s left of the block and run prebuild again.
*   **Xcode can’t resolve packages, and the error names `ios-client-sdk`**: Your app also uses LaunchDarkly’s iOS SDK. See [`'customerio-ios' is incompatible with 'ios-client-sdk'`](https://docs.customer.io/integrations/sdk/expo/getting-started/troubleshooting/#ios-client-sdk-conflict).
*   **Archiving fails with `Signing for "Customer.io_CioMessagingPushAPN" requires a development team`** (or another target that starts with `Customer.io_`): Your build passes one signing identity to every target. See [Release archive fails to sign `Customer.io_` targets](https://docs.customer.io/integrations/sdk/expo/getting-started/troubleshooting/#package-bundle-signing).
