Xcode 8.0 Swift 3.0 slow indexing and building

后端 未结 16 2152
天涯浪人
天涯浪人 2020-12-07 17:12

I\'ve installed Xcode 8.0 and converted Swift 2.2 to 3.0 (that process also took a lot of time, I just left my Mac running all night). I have not a big project (about 20 fil

16条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 17:28

    I had similar problem and followed this guide to debug : http://irace.me/swift-profiling My problem was i had nil coalescing operator in some strings for example:

    let name = "\(someString ?? "")"
    

    and four methods with this were causing 2 min additional building time.

提交回复
热议问题