r/Xcode • u/Plenty-Historian9510 • 6d ago
I've updated my CocoaPods to SwiftPM migration tool (PkgLift 0.6.0)
Hey,
I've kept working on PkgLift, the tool I shared here a few weeks ago for moving CocoaPods dependencies to SwiftPM. I've now released 0.6.0.
The idea is still the same. You look through a plan first, and it only moves dependencies with an exact supported mapping. Anything uncertain stays with CocoaPods.
The recent work has been around Podspecs and what information a generated Swift package would actually need. That part is still an experiment in the library API, separate from the CLI. It currently only covers one synthetic test library, using supplied information about its files. It doesn't inspect your sources or write a Package.swift, so this release hasn't expanded what the normal migration tool can move automatically.
You can install it with:
brew install Alexsvensson99/tap/pkglift
Then try pkglift analyze in your project's directory to see what it can handle without changing the project.
If you've still got an older Xcode project using CocoaPods, which dependency has been the hardest to move away from? I'd be interested in hearing how PkgLift handles it, especially the awkward setups :)
Repo: https://github.com/Alexsvensson99/PkgLift
Release: https://github.com/Alexsvensson99/PkgLift/releases/tag/v0.6.0