Repository navigation
feat!: [SDK-5859] drop CocoaPods support, require React Native 0.87+ (2/3) - #2026
fadi-george wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
abdulraqeeb33
left a comment
There was a problem hiding this comment.
Approving.
The stub has to stay so autolinking still sees the package, and SPM uses Package.swift instead of evaluating it. pod install stops on the raise. The migration command is npx react-native spm add --deintegrate. The release workflow reads and bumps the version in Package.swift only. examples/demo-pods is gone, and nothing in CI still calls it.
bun.lock still has the peer at >=0.79.0 and installs react-native@0.85.2 (bun.lock:18, bun.lock:670). package.json:59 says >=0.87.0. vp install on this SHA warns incorrect peer dependency "react-native@0.85.2". Update the lockfile. A resolve moves it to 0.88.1, which the demos already use.
Nit: put the swiftpmConfig.name check back. It went out with the podspec version test, and the name check still applies (package.json:78, Package.swift:30).
Nit: the lockfile refresh only runs examples/demo (create-release-pr.yml:223). examples/demo-no-location pins the same tarball.
The stub links to #swift-package-manager-ios. On this commit that section still says CocoaPods apps are unaffected. The docs PR rewrites it and keeps the anchor. Don't publish this commit without that.
Description
One Line Summary
Drop CocoaPods support on iOS and require React Native 0.87+ in Swift Package Manager mode.
Details
Motivation
CocoaPods trunk becomes read-only on Dec 2, 2026. After that, new
OneSignalXCFrameworkversions can't be published there, so CocoaPods apps can't get new native iOS versions. The package already ships aPackage.swift(#2018).Scope
react-native-onesignal.podspecis now a stub that stopspod installwith migration steps. It can't be deleted: React Native's CLI only autolinks an iOS dependency that has a podspec, even in SPM mode. SPM mode doesn't evaluate it, because the package ships its ownPackage.swift.react-native >=0.87.0.examples/demo-pods, the demo sync test, and the podspec vsPackage.swiftversion test.Package.swiftonly; remove the demo-pods Podfile and lockfile steps.setup-demoaction: remove the unusedinstall-podsinput and steps.Breaking change, so this should ship as 6.0.0. Expo apps build with CocoaPods, so they stay on 5.x until Expo supports React Native's SPM mode.
Stack
Testing
Unit testing
Removed the two tests that only covered
demo-podsand the podspec version.vp test,vp check src,vp fmt --checkandvp run buildpass.Manual testing
react-native spm updatestill autolinksReactNativeOneSignal(using its ownPackage.swift), and a Debug simulator build ofexamples/demopasses.pod ipc spec react-native-onesignal.podspecfails with the migration message.Package.swiftread/bumpsedcommands return and update the version on a copy of the file.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code