Skip to content

feat!: [SDK-5824] drop CocoaPods support, require SPM on iOS - #88

Draft
fadi-george wants to merge 3 commits into
mainfrom
fadi/sdk-5824
Draft

fadi-george wants to merge 3 commits into
mainfrom
fadi/sdk-5824

Conversation

@fadi-george

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

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Drop CocoaPods support for iOS. The plugin is now distributed only through Swift Package Manager.

Details

Motivation

CocoaPods trunk goes read-only on Dec 2, 2026. The podspec depends on OneSignalXCFramework from trunk, so the pods path can't take any native iOS bump released after that date. Same change as the Flutter SDK: OneSignal/OneSignal-Flutter-SDK#1206.

Scope

  • OneSignalCapacitorPlugin.podspec is now a stub that fails pod install with migration steps. cap sync writes every plugin into the Podfile by path, so without it pods users get "No podspec found" with no guidance. Intended as a 2.x transition shim; can be deleted in the next major.
  • Package.swift: OneSignal-XCFramework from: "5.2.0" -> from: "5.8.1", matching the version the podspec used.
  • create-release-pr.yml: read and bump the iOS SDK version in Package.swift. Previously only the podspec was bumped.
  • Delete examples/demo-pods. setup.sh syncs Android only when it isn't running on macOS, instead of checking for pod.
  • README: new "iOS: Swift Package Manager only" section with migration steps, including the NSE and widget targets. Pods instructions removed.

Not changed: Android, JS API, the SPM integration itself.

Other

Breaking: existing Capacitor apps (including on Capacitor 8) stay on pods until migrated. Suggest releasing as 2.0.0.

Testing

Unit testing

No new tests; no runtime code changed. vp run lint, format:check, vp test run, vp run build pass.

Manual testing

  • examples/demo iOS simulator build through SPM succeeds.
  • pod ipc spec on the stub prints the migration message.
  • Workflow read and bump sed verified against a copy of Package.swift.

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

Replace the podspec with a stub that fails pod install with migration
steps, delete the pods demo, and bump the iOS SDK version in
Package.swift from the release workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george requested a review from a team November 21, 2026 04:05
@fadi-george fadi-george changed the title feat: [SDK-5824] drop CocoaPods support, require SPM on iOS feat!: [SDK-5824] drop CocoaPods support, require SPM on iOS Nov 21, 2026
fadi-george and others added 2 commits November 20, 2026 20:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant