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).
Turning on the Whole Module Optimization while adding -Onone in Other Swift Flags worked for me, it reduced compilation time to 3 minutes from 10.
Read more here - Speed Up Swift Compilation