Speed up Xcode Swift build times

后端 未结 5 671
难免孤独
难免孤独 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 17:51

    Checkout this great post: https://github.com/fastred/Optimizing-Swift-Build-Times

    Some contents included:

    • Type checking of functions and expressions
    • Slowly compiling files
    • Build active architecture only
    • dSYM generation
    • Whole Module Optimization
    • Third-party dependencies
    • Modularization
    • XIBs
    • Xcode Schemes
    • Use the new Xcode build system
    • Enable concurrent Swift build tasks
    • Showing build times in Xcode

提交回复
热议问题