TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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
Hacking with Swift is sponsored by Blaze.

SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!

Reserve your spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

BUY OUR BOOKS
Buy Pro Swift Buy Pro SwiftUI 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 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 Beyond Code

Was this page useful? Let us know!

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.