Skip to content

SK-3327 cocoa-pods to spm migration - #339

Merged
skyflow-bharti merged 2 commits into
mainfrom
SK-3327-cocoa-pods-to-spm-migration
Nov 27, 2026
Merged

skyflow-bharti merged 2 commits into
mainfrom
SK-3327-cocoa-pods-to-spm-migration

Conversation

@skyflow-bharti

Copy link
Copy Markdown
Collaborator

Move iOS SDK distribution from CocoaPods to Swift Package Manager

Why

CocoaPods trunk becomes permanently read-only on December 2, 2026. After that date pod trunk push fails, so new SDK versions can't be published through CocoaPods. Versions already on trunk (Skyflow and SkyflowFlowVault 1.26.0) stay installable.

From the next release, both SDKs ship only through SPM. SPM resolves versions from git tags, so publishing a release on GitHub is the whole release step.

What changed

Release workflows

  • Removed release.yml and beta-release.yml. They only ran pod lib lint / pod trunk push. Releases are now created manually from GitHub Releases.
  • Removed internal_release.yml (dev builds pushed to skyflow-iOS-private-spec). Internal consumers pin a commit with SPM instead: .package(url: ..., revision: "<sha>").
  • bump_version.yml / scripts/bump_version.sh now only update SDK_VERSION in Version.swift. The podspec edits and the -dev.<sha> mode are removed.

CocoaPods packaging and code paths

  • Deleted Skyflow.podspec and SkyflowFlowVault.podspec.
  • Deleted SkyflowAssetBundle.swift and the CocoaPods #else image-loading branches in TextField.swift and UILabel+Copyable.swift. Images load only via Bundle.module. The removed branches were compile-time #if SWIFT_PACKAGE alternatives that SPM builds never compiled, so the SPM binary is unchanged.
  • .swiftlint.yml: dropped the Skyflow.podspec and Pods exclusions.

Docs

  • README.md, Skyflow/README.md, SkyflowFlowVault/README.md: SPM is the install method, including a Package.swift example. CocoaPods is marked "no new releases".
  • New MIGRATING_TO_SPM.md: a customer guide covering removing the pod, adding the package (Xcode / Package.swift), verification, CI, upgrading, beta pinning and troubleshooting.

Not in this PR

  • Sample apps (*/Samples/*) still use CocoaPods and keep working against 1.26.0 from trunk. Converting them to SPM, and dropping the unused AEXML pod, will be a follow-up PR.

Testing

  • Skyflow and SkyflowFlowVault build for generic/platform=iOS via SPM.
  • All test targets compile. Element, reveal, core and coexistence suites pass on an iOS simulator.
  • The SPM resource bundle (Skyflow_SkyflowCore.bundle) contains every image the SDK loads (card brands, Copy-Icon, Success-Icon, dropdown).
  • A test app depending on the package compiles with module-qualified names (Skyflow.Styles, Skyflow.ElementType, …), confirming customer code doesn't change.
  • Reviewer: run one sample/app via SPM and confirm the card icon and copy icons render.

Release process from now on

  1. Bump SDK_VERSION via a public-release/X.Y.Z branch, then merge to main.
  2. GitHub → Releases → new tag X.Y.Z (no v prefix) on main → publish.
  3. Betas: tag X.Y.Z-beta.N, check pre-release, uncheck latest. SPM never resolves betas from version ranges.
  4. Never move or delete a published tag. Customers' Package.resolved pins the commit. Fix a bad release with a new patch version.

After merge

  • Delete repo secrets COCOAPODS_TRUNK_TOKEN and SSH_ACTIONS. Keep PAT_ACTIONS, which pr.yml and bump_version.yml still use.
  • Archive skyflow-iOS-private-spec once internal users have moved to commit pins.
  • Let CocoaPods customers know about MIGRATING_TO_SPM.md.

@github-actions

Copy link
Copy Markdown

✅ Gitleaks Findings: No secrets detected. Safe to proceed!

@promptless

promptless Bot commented Nov 26, 2026

Copy link
Copy Markdown

Promptless documentation updates

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The migration example suggests SkyflowFlowVault, but tag 1.25.1 exports only Skyflow, so the alternative fails package resolution unless the example uses 1.26.0 or documents FlowVault’s minimum version.

1 open issue
What changed in this PR

Moves future releases of both iOS SDKs, Skyflow and SkyflowFlowVault, to Swift Package Manager while retaining their shared-core architecture.

Changes:

  • Removes CocoaPods packaging and publishing workflows; releases use GitHub tags.
  • Simplifies version updates and image loading for SPM-only distribution.
  • Updates installation documentation and adds a migration guide. Sample-app conversion remains out of scope.
File Description
SkyflowFlowVault/​README.md Adds SPM configuration and links the migration guide.
SkyflowFlowVault.podspec Removes FlowVault’s CocoaPods specification.
SkyflowCore/​Sources/​Version.swift Updates comments describing version management.
SkyflowCore/​Sources/​utils/​SkyflowAssetBundle.swift Removes the CocoaPods bundle-name helper.
SkyflowCore/​Sources/​reveal/​UILabel+Copyable.swift Loads copy and success icons exclusively through Bundle.module.
SkyflowCore/​Sources/​collect/​elements/​TextField.swift Removes CocoaPods image-loading branches.
Skyflow/​README.md Updates SPM installation instructions and CocoaPods guidance.
Skyflow.podspec Removes Skyflow’s CocoaPods specification.
scripts/​bump_version.sh Limits version updates to the shared SDK_VERSION.
README.md Presents SPM as the distribution method for both SDKs.
MIGRATING_TO_SPM.md Adds migration, verification, CI, and troubleshooting instructions.
.swiftlint.yml Removes podspec and Pods exclusions.
.github/​workflows/​release.yml Removes public CocoaPods publishing.
.github/​workflows/​internal_release.yml Removes private CocoaPods publishing.
.github/​workflows/​bump_version.yml Removes podspec handling from version automation.
.github/​workflows/​beta-release.yml Removes beta CocoaPods publishing.

Review effort: Balanced

Comment thread MIGRATING_TO_SPM.md Resolved
@github-actions

Copy link
Copy Markdown

✅ Gitleaks Findings: No secrets detected. Safe to proceed!

@skyflow-bharti
skyflow-bharti merged commit 6840a61 into main Nov 27, 2026
8 checks passed
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.

5 participants