Speed up Xcode Swift build times

后端 未结 5 670
难免孤独
难免孤独 2021-02-04 17:30

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).

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 18:07

    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

    I'm using Swift 3 on Xcode 8.3.

提交回复
热议问题