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

LEARN SWIFTUI FOR FREE I have a massive, free SwiftUI video collection on YouTube teaching you how to build complete apps with SwiftUI – check it out!

MASTER SWIFT NOW
Buy Testing Swift Buy Practical iOS 12 Buy Pro Swift Buy Swift Design Patterns Buy Swift Coding Challenges Buy Server-Side Swift (Vapor Edition) Buy Server-Side Swift (Kitura Edition) Buy Hacking with macOS Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with Swift Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers 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!