Repository navigation
docs: [SDK-5859] document SPM-only iOS setup (3/3) - #2027
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.
Requesting changes.
npx react-native spm add --deintegrate does not finish an app that still has other pods. It runs pod deintegrate, strips use_react_native!, use_native_modules!, and prepare_react_native_project!, and leaves every pod line and the .xcworkspace. Those pods are unlinked until pod install, and that project opens the .xcworkspace.
README.md:44 says to open the .xcodeproj from then on. That is right only after the Podfile is gone. If anything else stays, delete the OneSignalXCFramework line (the flag does not), run pod install, and open the .xcworkspace. Do not put use_react_native! back. MIGRATION_GUIDE.md:5 says the one command moves the project. It needs the same split.
The rest matches this branch. pod install fails with the link to the SPM section. The NSE links OneSignalExtension, the widget links OneSignalFramework, and "Up to Next Major" from 5.0.0 includes the exact 5.8.1 pin. Expo staying on 5.x is right. No JavaScript API change.
Trunk goes read-only on December 2, 2026. "became" is early (README.md:37). The demo script block still says bun@1.3.13 (examples/build.md:65). examples/demo/package.json is bun@1.4.0.
Description
One Line Summary
Document SPM-only iOS setup and how to migrate off CocoaPods.
Details
Motivation
PR 2 drops CocoaPods. The README, migration guide and demo build guides still describe Podfile setup.
Scope
README.md: React Native 0.87+ requirement for 6.0.0; Swift Package Manager section with migration steps (spm add --deintegrate, moving the NSE and widget to theOneSignal-XCFrameworkpackage) and the Expo note; CocoaPods steps removed from the location-disabling docs.MIGRATION_GUIDE.md: new v6.0.0 section; the v5 Podfile snippet is labeled 5.x only.examples/build-ios.mdandexamples/build.md: Podfile steps replaced with SPM.Docs only.
Stack
Testing
Docs only.
vp fmt --checkpasses.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code