Skip to content

[SDK-873] Stop publishing to CocoaPods trunk - #1100

Open
joaodordio wants to merge 3 commits into
masterfrom
cursor/sdk-873-cocoapods-deprecation-90c5
Open

joaodordio wants to merge 3 commits into
masterfrom
cursor/sdk-873-cocoapods-deprecation-90c5

Conversation

@joaodordio

@joaodordio joaodordio commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

📝 Summary

Stop publishing to CocoaPods trunk (read-only since Dec 2, 2026), read the release version from IterableAPI.sdkVersion, and update the README.

🎟️ Jira Ticket: SDK-873

📖 Description

CocoaPods trunk became permanently read-only on December 2, 2026 at 17:00 UTC and no longer accepts new versions. 6.7.5 is the last version of Iterable-iOS-SDK and Iterable-iOS-AppExtensions on trunk. Without this change, the next release would tag and publish to GitHub and then fail at the trunk push step.

  • Release workflow (ios-sdk-release.yml): removed the push pods to trunk step, the trunk verification loop, and the COCOAPODS_TRUNK_TOKEN env.
  • Fastfile: removed the pod_trunk_push lane and push_pod_if_missing, and dropped the call from release_sdk.
  • Version source of truth (validate-release.yml): the release version is now read from IterableAPI.sdkVersion instead of Iterable-iOS-SDK.podspec. Both podspecs are still checked against it.
  • Podspecs stay, still version-bumped by prepare-for-release.yml and linted by pod lib lint, so apps that can't leave CocoaPods yet can source the pods from git (pod 'Iterable-iOS-SDK', :git => ..., :tag => ...). That's why prepare-for-release.yml, build-and-test.yml, and the clean_and_lint release step are unchanged.
  • README: removed the CocoaPods version badge (it would show 6.7.5 forever). Added install notes: SPM recommended, CocoaPods deprecated with migration steps, and corrected Carthage usage (github "Iterable/iterable-swift-sdk", --use-xcframeworks --no-use-binaries --platform iOS, plus a link to the Xcode 27 workaround in the docs). --no-use-binaries is required because Carthage's default binary download installs only IterableAppExtensions from our release assets, not IterableSDK (SDK-885). A Carthage CI job is stacked on this PR in #1101.
  • CHANGELOG: Changed entry under Unreleased.

No SDK source changes. The #if COCOAPODS resource bundle lookup stays for git-sourced pods.

Known gaps, intentionally not in this PR:

  • bump_release_version (used only by the local release_sdk lane, not by CI) bumps the podspecs but not IterableAPI.sdkVersion. That predates this PR, but it now conflicts with the new source of truth. Easy follow-up if anyone still uses that lane.
  • pod lib lint and the xcodeproj still target iOS 12. Once CI moves to Xcode 27, lint and builds hit the "deployment target below 15.0" error. That's tracked in SDK-799.

🧪 How to test?

  • validate-release.yml logic: I ran the step's script locally with GNU grep in four cases. Consistent 6.7.5 passes. A drifted AppExtensions podspec fails with the expected message. Bumping only sdkVersion to 6.8.0 reports the CHANGELOG entry and both podspecs. A missing sdkVersion fails fast.
  • actionlint on both workflows: only existing SC2086 info notes on lines this PR doesn't touch. ruby -c fastlane/Fastfile is OK. No references to pod_trunk_push, push_pod_if_missing, or COCOAPODS_TRUNK_TOKEN remain.
  • Carthage: carthage update --use-xcframeworks --platform iOS against this branch produces Carthage/Build/IterableSDK.xcframework and IterableAppExtensions.xcframework on Xcode 27, with XCODE_XCCONFIG_FILE setting IPHONEOS_DEPLOYMENT_TARGET = 15.0. Without the override, Xcode 27 rejects the iOS 12 target (SDK-799).
  • Unit tests: they couldn't run locally on Xcode 27. The project compiles with IPHONEOS_DEPLOYMENT_TARGET=15.0, but the iOS 27 SDK refuses to launch host-app without the UIScene lifecycle. CI on Xcode 16.4 is the signal here, and no Swift sources changed.
  • The next real check is the first release run without the trunk step.

🧾 Changelog

Added a Changed entry under [Unreleased] in CHANGELOG.md.

📹 Loom recording if applicable

N/A

🐞 Github Issues solved

N/A

📚 Docs PR if applicable

https://github.com/Iterable/iterable-docs/pull/1655

Opened by @joaodordio with Cursor for SDK-873. Related work outside this PR:

  • React Native 4.0.0 (published December 2) still pins Iterable-iOS-SDK 6.7.5 from CocoaPods trunk. react-native-sdk#947 moves the next RN release to spm_dependency, and iterable-expo-plugin#78 links the NSE's IterableAppExtensions through SPM.
  • Stacked on this PR: #1101 adds a Carthage CI job. Merge this PR first.
  • Carthage binary download bug: SDK-885.
  • The COCOAPODS_TRUNK_TOKEN repo secret can be deleted after merge (admin action).

CocoaPods trunk became read-only on December 2, 2026, so 6.7.5 is the last
version on trunk. Remove the trunk push and verification from the release
workflow and Fastfile, and read the release version from
IterableAPI.sdkVersion instead of the podspec. The podspecs stay in the
repo, version-checked, so apps can still source the pods from git.

Update the README: drop the CocoaPods badge, mark CocoaPods as deprecated
with migration steps, and correct the Carthage instructions (repo name and
--use-xcframeworks).
@joaodordio
joaodordio requested a review from a team as a code owner December 2, 2026 10:54
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.63%. Comparing base (d97e76e) to head (cfe3770).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1100      +/-   ##
==========================================
- Coverage   73.67%   73.63%   -0.04%     
==========================================
  Files         114      114              
  Lines       10202    10202              
==========================================
- Hits         7516     7512       -4     
- Misses       2686     2690       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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