Skip to content

ci: [SDK-5828] stop publishing podspecs to CocoaPods trunk - #1823

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

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

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Stop pushing podspecs to CocoaPods trunk in the release workflow, since trunk goes read-only on Dec 2, 2026.

Details

Motivation

After Dec 2, pod trunk push fails and the step exits 1, which would stop the whole release job before the OneSignal-XCFramework tag and release are created.

Scope

  • Removes the Ruby/CocoaPods setup, both pod spec lint steps, the trunk push step and the CocoaPods summary output from publish-release.yml. Renames the workflow to "Publish Release to SPM".
  • Keeps OneSignal.podspec and OneSignalXCFramework.podspec. Other workflows read the release version from them, and versions already on trunk keep installing.
  • The XCFramework tag/release and wrapper PRs are unchanged.
  • Wrappers that still depend on OneSignalXCFramework through CocoaPods can't take versions released after this. Each wrapper tracks its own plan (Flutter SDK-5823, Capacitor SDK-5824, Cordova SDK-5825).
  • COCOAPODS_TRUNK_TOKEN is no longer used and can be removed from repo secrets after merge.

Testing

Manual testing

Workflow YAML validated locally. Not run end to end, since it only runs on release. The next release run will confirm it.

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

CocoaPods trunk goes read-only on Dec 2, 2026, so the push would fail
every release. The workflow now only tags and releases
OneSignal-XCFramework for SPM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george requested a review from nan-li November 23, 2026 20:01

@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. The next stable release pushes the XCFramework tag, then wrapper_prs fails, and none of the wrapper PRs open.

publish-release.yml:146 still calls create-wrapper-prs.yml@main with ios_version. wait-for-ios-pod (create-wrapper-prs.yml:156) runs wait-for-cocoapods-pod whenever that input is set. The action polls OneSignalXCFramework:<version> on the CDN for 50 attempts, a minute apart, and exits 1 (action.yml:48). versions needs that job (create-wrapper-prs.yml:180), so Capacitor, Cordova, Flutter, React Native, Unity, and .NET are skipped. This workflow no longer publishes the pod, so the version never appears. A full re-run then fails at git tag (publish-release.yml:103), because the first run already pushed the tag.

Point that wait at the OneSignal-XCFramework tag this job just created, in sdk-shared, and land it before this merges.

On current main, React Native's release job still runs pod update OneSignalXCFramework (create-release-pr.yml:249), and Unity still writes an iosPod from OneSignaliOSDependencies.cs:73. Those migrations are open and unmerged. .NET copies the xcframeworks from the iOS SDK git tag and does not need trunk, which is why this wait should not gate it.

Nit: publish-release.yml:4 says trunk has been read-only since Dec 2. The published cutoff is Dec 2, 2026, noon ET (11:00 AM CT).

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

Copy link
Copy Markdown
Contributor Author

Thanks, good catch. OneSignal/sdk-shared#77 swaps the CocoaPods CDN wait for a check on the OneSignal-XCFramework tag. It needs to merge before this one. I also made the tag and release step skip work a previous run already did, so a re-run no longer fails at git tag, and fixed the date in the comment. The RN and Unity pod bumps are tracked in SDK-5871 and SDK-5872 and should land before the next iOS release.

@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. The three points from the earlier review are covered at 9b9f8ec. The wait moved to the XCFramework tag in OneSignal/sdk-shared#77, a full re-run no longer stops at git tag, and the header date is fixed. I checked the guard commands against the live repo: git ls-remote --exit-code returns 0 for an existing tag and 2 for a missing one, and gh release view returns 0 and 1.

Two follow-ups, neither blocking.

  • This removes both pod spec lint steps, and nothing else in the repo validates the podspecs we are keeping. If they stay installable by :git, a lint step or a small git-sourced install check would keep them from breaking unnoticed.
  • The fan-out still bumps the pod pin in Cordova, Flutter, React Native and Unity (SDK-5869 to SDK-5872). Those need to land before the next stable iOS release, or the wrapper PRs will pin a version that is not on trunk.

@fadi-george
fadi-george merged commit c9dd102 into main Dec 1, 2026
2 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5828 branch December 1, 2026 21:25
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.

3 participants