Repository navigation
SK-3327 cocoa-pods to spm migration - #339
Merged
Merged
Conversation
|
✅ Gitleaks Findings: No secrets detected. Safe to proceed! |
Promptless documentation updates
|
There was a problem hiding this comment.
🟡 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
aadarsh-st
approved these changes
Nov 26, 2026
yaswanth-pula-skyflow
previously approved these changes
Nov 26, 2026
saileshwar-skyflow
previously approved these changes
Nov 27, 2026
skyflow-bharti
dismissed stale reviews from saileshwar-skyflow and yaswanth-pula-skyflow
via
November 27, 2026 06:23
e65faed
|
✅ Gitleaks Findings: No secrets detected. Safe to proceed! |
saileshwar-skyflow
approved these changes
Nov 27, 2026
aadarsh-st
approved these changes
Nov 27, 2026
yaswanth-pula-skyflow
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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 pushfails, so new SDK versions can't be published through CocoaPods. Versions already on trunk (SkyflowandSkyflowFlowVault1.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
release.ymlandbeta-release.yml. They only ranpod lib lint/pod trunk push. Releases are now created manually from GitHub Releases.internal_release.yml(dev builds pushed toskyflow-iOS-private-spec). Internal consumers pin a commit with SPM instead:.package(url: ..., revision: "<sha>").bump_version.yml/scripts/bump_version.shnow only updateSDK_VERSIONinVersion.swift. The podspec edits and the-dev.<sha>mode are removed.CocoaPods packaging and code paths
Skyflow.podspecandSkyflowFlowVault.podspec.SkyflowAssetBundle.swiftand the CocoaPods#elseimage-loading branches inTextField.swiftandUILabel+Copyable.swift. Images load only viaBundle.module. The removed branches were compile-time#if SWIFT_PACKAGEalternatives that SPM builds never compiled, so the SPM binary is unchanged..swiftlint.yml: dropped theSkyflow.podspecandPodsexclusions.Docs
README.md,Skyflow/README.md,SkyflowFlowVault/README.md: SPM is the install method, including aPackage.swiftexample. CocoaPods is marked "no new releases".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
*/Samples/*) still use CocoaPods and keep working against 1.26.0 from trunk. Converting them to SPM, and dropping the unusedAEXMLpod, will be a follow-up PR.Testing
SkyflowandSkyflowFlowVaultbuild forgeneric/platform=iOSvia SPM.Skyflow_SkyflowCore.bundle) contains every image the SDK loads (card brands,Copy-Icon,Success-Icon,dropdown).Skyflow.Styles,Skyflow.ElementType, …), confirming customer code doesn't change.Release process from now on
SDK_VERSIONvia apublic-release/X.Y.Zbranch, then merge tomain.X.Y.Z(novprefix) onmain→ publish.X.Y.Z-beta.N, check pre-release, uncheck latest. SPM never resolves betas from version ranges.Package.resolvedpins the commit. Fix a bad release with a new patch version.After merge
COCOAPODS_TRUNK_TOKENandSSH_ACTIONS. KeepPAT_ACTIONS, whichpr.ymlandbump_version.ymlstill use.skyflow-iOS-private-speconce internal users have moved to commit pins.MIGRATING_TO_SPM.md.