Xcode 8 does full project rebuild

前端 未结 4 1837
南笙
南笙 2020-12-02 11:13

Having updated Swift + ObjC project to Xcode 8 (Swift 2.3) I found 50% or more of the time Xcode does a full rebuild of the project instead of an incremental build.

4条回答
  •  渐次进展
    2020-12-02 11:40

    I have found this works consistently, it will however compile swift files if you modify a header included in the bridging header. It will also do full compile if you switch git branches back and forth.

    Firstly make sure optimization level for debug is set to None (Not whole module optimization)

    Then, according to https://forums.developer.apple.com/thread/62737 Apple Staff (ddunbar):

    We believe that setting:

    HEADERMAP_USES_VFS = YES
    

    to true in your project (or for all your targets) may be an effective workaround > for many people. This is not guaranteed to work (which is the reason it isn't > already on by default), but it should work for most projects.

    This should be added through "Add user-defined setting" under your target Build Settings.

    .

提交回复
热议问题