Compile Time Incredibly Slow

后端 未结 8 1141
执笔经年
执笔经年 2020-12-22 23:57

My project consists of ~350 Swift files and ~40 cocoa pod dependencies.

As soon as the entire project was migrated to Swift 3, build times have been <

8条回答
  •  粉色の甜心
    2020-12-23 00:07

    SWIFT_WHOLE_MODULE_OPTIMIZATION = YES

    Xcode version: 8.1 GM

    To add choose your target, then go to Editor > Add Build Setting > Add User-Defined Setting, and add the above.

    My clean build time dropped from 35 mins (Ahem, excuse me) to 8 mins with a project file count of 800.

    Note: Tried this on Xcode 8.0 first, but didn't work.

提交回复
热议问题