11
Creating and Distributing Swift Packages

Creating and Distributing Swift Packages

7 years ago
Anonymous $yysEBM5EYi

https://medium.com/@aclaytonscott/creating-and-distributing-swift-packages-132444f5dd1

Recently while working on a SwiftNIO side-project I ended up writing a few classes for handling IP addresses and networks. Since the functionality and scope of these classes was nice and contained, I thought it might be a good idea to publish the package so I could use it in other projects.

As I’d never done this before and didn’t see a huge number of resources online for the subject, I figured it might make for a good read for others starting out with Swift. In this post I’ll show you how to create your own Swift package that can be both on macOS and linux. I’ll also look at how to leverage Github and Travis-CI to automate your testing and deployment.