Xcode swift indexing forever

前端 未结 25 1896
不知归路
不知归路 2020-11-30 03:15

I\'m currently developing an iOS app using swift and Xcode 6 (Beta 3).

Everything went fine so far but now as my project grows, Xcode suddenly began indexing and it

25条回答
  •  春和景丽
    2020-11-30 03:37

    I had the same issue in my code. The solution for me was delete all spaces in the array in my code.

    Ex.

      struct Objects {
    
      let objectA = ["text1", 
                     "text2", 
                     "text3", 
                     "text4"] }
    

    // Noise, CPU 100% and Index forever. The solution is...

    struct Objects {
        let objectA = ["text1","text2","text3","text4"]}
    

    // Solved making the Array or String with no space.

提交回复
热议问题