Skip to content

chore: [SDK-5868] freeze CocoaPods iOS SDK at 5.8.1, bump via Package.swift - #92

Merged
fadi-george merged 2 commits into
mainfrom
fadi/sdk-5868
Dec 1, 2026
Merged

fadi-george merged 2 commits into
mainfrom
fadi/sdk-5868

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Bump the iOS SDK version in Package.swift on release and keep the CocoaPods dependency at OneSignalXCFramework 5.8.1.

Details

Motivation

CocoaPods trunk becomes read-only on Dec 2, 2026. New OneSignalXCFramework versions won't be published there. If the release workflow kept writing new versions into the podspec, pod install would fail for CocoaPods apps. This is the non-breaking alternative to #88, which removes CocoaPods support entirely. Replaces #91.

Scope

  • create-release-pr.yml now reads and bumps the iOS SDK version in Package.swift instead of the podspec.
  • The podspec stays at 5.8.1, so CocoaPods apps keep building but get no newer iOS SDK versions.
  • The minimum in Package.swift goes from 5.2.0 to 5.8.1 so the version the workflow reads matches what we ship.
  • No public API or runtime changes.

Testing

Manual testing

  • Ran the workflow's read and bump commands locally against Package.swift: the read gives 5.8.1 and a test bump applies.
  • The podspec passes ruby -c.
  • swift package resolve succeeds.

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

….swift

CocoaPods trunk is read-only, so new OneSignalXCFramework versions ship only via SPM.

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

@nan-li nan-li 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.

Approving. I ran the workflow's read and bump commands against Package.swift at f2fbc95. The read returns 5.8.1, a bump to 5.9.0 applies, and the manifest still parses.

Two follow-ups, neither blocking.

  • After the next iOS bump the two install paths compile the same Swift sources against different native versions, 5.8.1 on CocoaPods and the new one on SPM. No workflow builds examples/demo-pods, here or in the shared CI job, so a bridge change that uses an API newer than 5.8.1 would pass CI and fail for CocoaPods apps. A pods build job would catch it.
  • If one more native version reaches trunk before the cutoff, the pin on line 5 needs a manual bump, since the workflow no longer touches the podspec.

@fadi-george
fadi-george merged commit cde31a7 into main Dec 1, 2026
3 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5868 branch December 1, 2026 21:28
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