Skip to content

fix: update the iOS SDK to 5.4.1, and stop pod install on unsupported React Native setups - #713

Merged
Shahroz16 merged 3 commits into
mainfrom
claude/pod-install-version-guards
Dec 1, 2026
Merged

Shahroz16 merged 3 commits into
mainfrom
claude/pod-install-version-guards

Conversation

@Shahroz16

@Shahroz16 Shahroz16 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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 install stop with a clear message in two cases that used to install fine and then do nothing or fail later:

  • React Native below 0.79 on iOS. React Native doesn't register the SDK's TurboModules there, so a 0.77 or 0.78 app (or Expo SDK 52, which is React Native 0.76) built and the SDK did nothing on iOS. pod install now reads the app's React Native version from the package.json at REACT_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 before use_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.
  • Neither install hook can run. When CocoaPods' installer lacks the private validate_targets or run_podfile_post_install_hooks step and React Native's SPMManager isn't loaded, nothing adds customerio-ios to the pods: pod install used to succeed and the build then failed with No 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 "Invalid customerio-reactnative.podspec file", 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 stale REACT_NATIVE_PATH to an older checkout in the environment installs and links the customerio-ios products, and after expo prebuild an 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.

… 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>
@Shahroz16
Shahroz16 requested a review from a team as a code owner December 1, 2026 10:07
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
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.

  • iOS APN: 713.3.0 (29935695)
  • iOS FCM: 713.3.0 (29935695)

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 mrehan27 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@Shahroz16 Shahroz16 changed the title fix: stop pod install on React Native before 0.79 and when no install hook can run fix: update the iOS SDK to 5.4.1, and stop pod install on unsupported React Native setups Dec 1, 2026
@Shahroz16
Shahroz16 merged commit 9e52c3e into main Dec 1, 2026
49 of 55 checks passed
@Shahroz16
Shahroz16 deleted the claude/pod-install-version-guards branch December 1, 2026 17:28
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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants