Xcode 6.3 code completion too slow

前端 未结 4 425
后悔当初
后悔当初 2020-12-23 09:45

I\'ve just updated Xcode to version 6.3. I\'m working on a project in Swift with some imported Objective C code. I also use Cocoapods.

I had the same issue with the

相关标签:
4条回答
  • 2020-12-23 10:04

    Try to clear project Derived Data, after update.
    Window - Projects - YourProject - Derived Data - Delete...
    In my case code completion is working better after update.

    0 讨论(0)
  • 2020-12-23 10:07

    I used extensions on the GameScene Class and it sped everything up.

    I took out three large functions from my gameScene Class, And made three separate extensions for them.

    This is probably the easiest solution if none of the above work.

    0 讨论(0)
  • 2020-12-23 10:09

    This issue appears to be fixed in Xcode 6.3.1 (released yesterday).

    0 讨论(0)
  • 2020-12-23 10:16

    Setting Whole Module Optimization to Yes is a workaround in my project.

    enter image description here

    In my case, the project has 5 modules, named here A, B, C, D and E, where the dependency is diagramed A -> B -> C -> D, and each of A to D refers E. With Xcode 6.3 and 6.3.1, it is fine to compile modules E and D, but it takes longer to compile C, and much longer to compile B and A, like 10 mins. After I change the project setting, it takes less than a min to compile all the modules. It looks faster than compilation with Xcode 6.2.

    References:

    • Slow test file compilation in Swift 1.2, Xcode 6.3.1
    • https://devforums.apple.com/message/1128702#1128702
    0 讨论(0)
提交回复
热议问题