Repository navigation
ci: [SDK-5828] stop publishing podspecs to CocoaPods trunk - #1823
Conversation
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>
abdulraqeeb33
left a comment
There was a problem hiding this comment.
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>
|
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 |
nan-li
left a comment
There was a problem hiding this comment.
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 lintsteps, 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.
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 pushfails and the step exits 1, which would stop the whole release job before the OneSignal-XCFramework tag and release are created.Scope
pod spec lintsteps, the trunk push step and the CocoaPods summary output frompublish-release.yml. Renames the workflow to "Publish Release to SPM".OneSignal.podspecandOneSignalXCFramework.podspec. Other workflows read the release version from them, and versions already on trunk keep installing.OneSignalXCFrameworkthrough 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_TOKENis 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
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code