Skip to content

docs: [SDK-5859] document SPM-only iOS setup (3/3) - #2027

Open
fadi-george wants to merge 1 commit into
fadi/sdk-5859-drop-podsfrom
fadi/sdk-5859-docs
Open

fadi-george wants to merge 1 commit into
fadi/sdk-5859-drop-podsfrom
fadi/sdk-5859-docs

Conversation

@fadi-george

@fadi-george fadi-george commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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 the OneSignal-XCFramework package) 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.md and examples/build.md: Podfile steps replaced with SPM.

Docs only.

Stack

  1. chore: [SDK-5859] build demo-no-location with Swift Package Manager (1/3) #2025 Build demo-no-location with Swift Package Manager
  2. feat!: [SDK-5859] drop CocoaPods support, require React Native 0.87+ (2/3) #2026 Drop CocoaPods support, require React Native 0.87+
  3. docs: [SDK-5859] document SPM-only iOS setup (3/3) #2027 Document SPM-only iOS setup (this PR)

Testing

Docs only. vp fmt --check passes.

Affected code checklist

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
  • I have reviewed this PR myself, ensuring it meets each checklist item

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@abdulraqeeb33 abdulraqeeb33 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.

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.

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