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-reactnative8. Use version 5.0.3 or later of the plugin, which works with any 8.x version ofcustomerio-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 oldercustomerio-reactnative, prebuild stops with a message. -
Your app does not install Customer.io pods. React Native installs the
customerio-reactnativepod 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/Podfilefrom 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 ifios.pushNotificationis unset).RUBY# --- 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.gitin 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 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 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-ioshttps://github.com/customerio/cdp-analytics-swifthttps://github.com/customerio/jisthttps://github.com/LaunchDarkly/swift-eventsourcehttps://github.com/segmentio/sovran-swifthttps://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 YourAppFirebase 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.useFrameworkstodynamicinexpo-build-properties. Withstatic,pod installstops. - Your Firebase config files in Expo’s fields. React Native Firebase’s plugins read
expo.ios.googleServicesFileandexpo.android.googleServicesFile, and prebuild stops for a platform whose field is missing. If you set yourGoogleService-Info.plistpath in the Customer.io plugin’sios.pushNotification.googleServicesFile, keep that file outside youriosfolder, pointexpo.ios.googleServicesFileat it, and remove the Customer.io setting. If you commit youriosfolder, also delete theios/GoogleService-Info.plistcopy 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.
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.
-
Install the latest 5.x version of the plugin with the latest 8.x version of
customerio-reactnative:BASHnpm install customerio-expo-plugin@5 customerio-reactnative@8 -
Remove
ios.useFrameworksfrom yourcustomerio-expo-pluginoptions. If you use FCM with React Native Firebase, check the Firebase settings. -
Update your iOS project:
- If you don’t commit your
iosfolder, which is the default Expo setup, EAS Build runs prebuild for you, so build as usual. To build on your own machine, runnpx expo prebuild --clean --platform iosfirst. - If you commit your
iosfolder, EAS Build skips prebuild, so follow Update a committediosfolder and commit the result.
- If you don’t commit your
Update a committed ios folder
-
Commit your current
iosfolder, 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, likeCioSdkAppDelegateHandler.swiftin your app’s folder andCIOLiveActivityWidgetBundle.swiftin theCIOLiveActivityWidgetfolder, even if you edited them.On Expo SDK 57 and later, run:
BASHnpx expo prebuild --no-clean --platform iosExpo SDK 56 and earlier don’t have the
--no-cleanoption, so run:BASHnpx expo prebuild --platform iosFrom Expo SDK 57,
npx expo prebuildwithout--no-cleandeletes and recreates your native folders, includingandroidunless you pass--platform ios. If you haven’t changed youriosfolder yourself, you can runnpx expo prebuild --clean --platform iosinstead.If prebuild warns that the
NotificationServiceextension isn’t linked to the Customer.io Swift package, see Troubleshooting before you continue. -
Install pods. CocoaPods removes the old Customer.io pods and the pod setup it added to your extensions.
BASHcd ios && pod install -
Check the result:
ios/Podfilehas the module switches block and nopod 'customerio-reactnative...'orpod 'CustomerIO...'lines.ios/Podfile.lockdoesn’t list anyCustomerIO,CioFirebaseWrapper, orcustomerio-reactnative-richpushpods.- If you set
ios.pushNotification.useRichPushtotrueor turned on live notifications, your app project’s Package Dependencies in Xcode listscustomerio-ios, and the extension targets for those features,NotificationServiceandCIOLiveActivityWidget, list its products under Frameworks and Libraries. git diffdoesn’t show prebuild removing your own changes. If prebuild replaced a file that you had edited, add your changes back.
-
Build your app once, so Xcode resolves the Swift packages and writes
ios/<YourApp>.xcworkspace/xcshareddata/swiftpm/Package.resolved. -
Commit the
iosfolder, including the changedPodfile,Podfile.lock,project.pbxproj, andPackage.resolvedfiles.
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.
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-reactnativeuses another iOS SDK version with the same major version, runpod install. The extensions resolve to the version your app’s pod asks for. Build once, then commit the updatedPodfile.lockandPackage.resolved. - When the new
customerio-reactnativeuses a new major version of the iOS SDK, update your committediosfolder 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 andcustomerio-reactnativeto the latest 8.x version, as in the upgrade steps, 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. - 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 tocustomerio-reactnativethrough thePodfile, which only the CocoaPods build reads. Turn the preview off and run prebuild again, in place if you commit youriosfolder. If an earlier prebuild already converted your project to Swift Package Manager, Expo asks you to runnpx expo prebuild --clean --platform ios. That recreates youriosfolder, 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 youriosfolder, runnpx expo prebuild --clean --platform iosso 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 ---andENDlines): Prebuild removes the Customer.io lines and keeps your pods in their target. The block keeps itsuse_frameworks!line, which the plugin doesn’t update anymore, so keep it matchingios.useFrameworksinexpo-build-properties. - Prebuild warns
The NotificationService extension isn't linked to the Customer.io Swift package: Your existingNotificationServicetarget doesn’t link the Customer.io push product, so prebuild kept the earlier rich push pod inios/Podfile. Commit or save your own changes to youriosfolder, runnpx expo prebuild --clean --platform iosto regenerate the extension, and add your changes back afterward. - Building
Pods.xcodeprojfails withPackages are not supported when using legacy build locations: Thecustomerio-reactnativepod now includes a Swift package. CocoaPods’Pods.xcodeprojuses legacy build locations, so Xcode can’t build that package when you buildPods.xcodeprojby itself, as some scripts and pod caching tools do. Build your app’s.xcworkspaceinstead. - Prebuild warns
Found # --- CustomerIO ... START --- without ... END: Someone edited a Customer.io block inios/Podfileby 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'. - Archiving fails with
Signing for "Customer.io_CioMessagingPushAPN" requires a development team(or another target that starts withCustomer.io_): Your build passes one signing identity to every target. See Release archive fails to signCustomer.io_targets.