4 Followers
·
Follow

Ready for Swift Package Manager?

This script helps you to find out.

Image for post
Image for post

This year Swift Package Manager has made a huge step forward. Integrated into Xcode 11 it is no longer a Package Manager that you should ignore. While some of the Open Source Projects you are using have problems adopting to Swift Package Manager, because of (at the moment) missing features like Resource handling, others are already fully supported. But how to figure out which Libraries are ready to migrate?

I wrote a small script that does the whole work for you if you are using Cocoapods.

4 simple steps:

1. In Terminal go to your project root folder

cd {project-root}

2. Download latest script version

curl https://raw.githubusercontent.com/StatusQuo/spmready/master/main.swift -o spmready.swift

3. Make it executable

chmod +x spmready.swift

4. Run

./spmready.swift

Hope this helps 😊

Where do we go from here?

Mixed Migration aka Early Adopter

Sit and wait

Hey Siri remind me to check spmready for migration in one year

This is fine. Working with two Dependency Managers can be exhausting and no one can tell you how long it will take until all libraries you are using have SwiftPM support. But please consider contributing to the open-source project, you can always file an issue on Github to show that you care.

Old is gold

I have cocoa pods/Carthage. So why do I need another Swift Package Manager?!

I think SwiftPM will be the new standard dependency manager. It feels just right to have dependencies managed and viewable in your IDE. And if you really don’t ever think about migrating to the new, you probably wouldn’t click a headline like this 🤷‍♀️.

Written by

Mobile & Cloud Developer. iOS & Firebase Fanboy.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store