Repository navigation
fix: update the iOS SDK to 5.4.1, and stop pod install on unsupported React Native setups - #713
Merged
Merged
Conversation
… hook can run Below React Native 0.79, React Native doesn't register the SDK's TurboModules on iOS, so a 0.77 or 0.78 app (or Expo SDK 52, on 0.76) built and the SDK silently did nothing there. `pod install` now stops below 0.79 when it installs the SDK's pod. The version comes from the package.json at REACT_NATIVE_PATH, which `use_react_native!` exports and React Native's own pod scripts read. The check runs from the install hooks, before CocoaPods' target checks, because React Native's autolinking evaluates the podspec before `use_react_native!` sets the path. It compares major and minor only, so release candidates and nightlies of 0.79 and later pass; an npm peer range would reject them. The CocoaPods installer hook quietly skipped itself when `Pod::Installer` lacked the private `validate_targets` or `run_podfile_post_install_hooks` step. If React Native's SPMManager wasn't loaded either, nothing added customerio-ios to the pods, `pod install` succeeded, and the build failed later with `No such module`. That case now stops `pod install`, naming the missing step and the supported CocoaPods range (1.13 to 1.17, which all have both steps). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request. Builds are in progress. This comment will be updated when they finish.
|
Adds a migration guide troubleshooting entry for the new `pod install` error on React Native below 0.79: what it means (the SDK's TurboModules don't register there, so the SDK would do nothing on iOS) and the fix (React Native 0.79 or later, Expo SDK 53 or later). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mrehan27
approved these changes
Dec 1, 2026
mrehan27
left a comment
Contributor
There was a problem hiding this comment.
Good to go once the Expo plugin release from customerio/customerio-expo-plugin#458 is on npm.
5.4.1 allows swift-eventsource 3.4.x, so apps that also use LaunchDarkly 11.7.0 or later can resolve packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cio-mobile-release Bot
pushed a commit
that referenced
this pull request
Dec 1, 2026
## [8.0.1](8.0.0...8.0.1) (2026-12-01) ### Bug Fixes * update the iOS SDK to 5.4.1, and stop pod install on unsupported React Native setups ([#713](#713)) ([9e52c3e](9e52c3e))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This also updates the iOS SDK to 5.4.1, which allows swift-eventsource 3.4.x so apps that also use LaunchDarkly 11.7.0 or later can resolve packages. Shipping both together keeps this to one release (8.0.1).
Makes
pod installstop with a clear message in two cases that used to install fine and then do nothing or fail later:pod installnow reads the app's React Native version from thepackage.jsonatREACT_NATIVE_PATH, the way React Native's own pod scripts do, and stops below 0.79 when it installs the SDK's pod. The check runs from the install hooks rather than the podspec, because React Native's autolinking evaluates the podspec beforeuse_react_native!sets that path. It compares major and minor only, so release candidates and nightlies of 0.79 and later still install, which an npm peer range wouldn't allow.validate_targetsorrun_podfile_post_install_hooksstep and React Native's SPMManager isn't loaded, nothing adds customerio-ios to the pods:pod installused to succeed and the build then failed withNo such module. It now stops and names the supported CocoaPods range, 1.13 to 1.17. All of those have both steps, so this only fires on setups that would fail anyway. With no hook to run in, this error comes up while CocoaPods evaluates the podspec, so CocoaPods shows it under "Invalidcustomerio-reactnative.podspecfile", as it already does for an unknown$customerio_push_provider.New Ruby tests cover the version check (relative and absolute paths, release candidates and nightlies, an extension-only install, and both hooks refusing 0.78) and the hook decision with each installer step missing and with SPMManager. I also ran real
pod installs: a stub app on React Native 0.78.2 stops with the message, a 0.79.0-rc.3 app with a staleREACT_NATIVE_PATHto an older checkout in the environment installs and links the customerio-ios products, and afterexpo prebuildan Expo SDK 52 app (React Native 0.76.9) stops while SDK 53 (0.79.6) installs. Real 0.79.7 apps with pnpm and with dynamic frameworks install too. Not built in Xcode or on EAS.Merging this releases 8.0.1. Please merge it only after the customerio-expo-plugin release that widens its customerio-reactnative peer range to
~8.0.0: plugin 5.0.0 pins exactly 8.0.0, so Expo apps would hit a peer conflict on 8.0.1 until then.