Speed up Xcode Swift build times
问题 As my project has grown over the past year, so have its build times. Over the last few months it's gone from 4 minutes to around 7 (time includes GitHub pull, unit tests, etc). I have investigated with -Xfrontend -debug-time-function-bodies to find lines that are slow to compile, and changed that code. I believe it's now a question of project size; 182 Swift files, ≈31K lines. 23 storyboards, 52 XIBs. This is a regular UIKit app with a handful of Cocoapods dependencies. The bulk of the build