NEW: Join my free 100 Days of SwiftUI challenge today! >>

How to upgrade to modern app infrastructure

Add tests, use CocoaPods, get continuous integration, and more!

Paul Hudson       @twostraws

It's easy to look at your project and think, "I could have done this better," but what does it take to really fix things? I wrote a series of articles showing exactly how to upgrade your projects for modern app infrastructure: getting great unit tests where you had none before, adopting smart coding conventions to make your work easier to read, streamlining tedious work using Fastlane, and more.

These articles all build upon the same example project from GitHub, but you can apply their principles anywhere else. If you're using my project then you should follow the articles sequentially, but if you just want to upgrade your own projects then you can read whichever articles you like – just skip to the part that interests you.

Here are direct links to the various parts:

  1. How to refactor your code to add tests
  2. How to add CocoaPods to your project
  3. How to clean up your code formatting with SwiftLint
  4. How to streamline your development with Fastlane
  5. How to save and share your work with GitHub
  6. How to validate code changes using CircleCI

SAVE 20% ON iOS CONF SG The largest iOS conference in Southeast Asia is back in Singapore for the 5th time in January 2020, now with two days of workshops plus two days of talks on SwiftUI, Combine, GraphQL, and more! Save a massive 20% on your tickets by clicking on this link.

BUY OUR BOOKS
Buy Pro Swift Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift (Vapor Edition) Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Server-Side Swift (Kitura Edition) Buy Beyond Code

About the author

Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and a speaker at Swift events around the world. If you're curious you can learn more here.

Was this page useful? Let us know!