ios - My Xcode 7.3 compiler is constantly breaking and causing extremely long Build and Compile times -
this issue occurred on spritekit xcode project
i have issue swift where, once project reaches level of complexity have tons of classes , methods around, autocompletion breaks "jump definition" ceases work , ide reduced usefulness of basic texteditor/notepad.
my code's color change white completely, causes lot of strain on eyes, , seems happen when remove , add large blocks of code watch cpu activity climb 75% usage on cpu cores.
i think started happening when switched target ios 9.3 on 8.0. issue compiler trying interpret old swift syntax?
i have cases wait 2 minutes minor changes compile, build fail due "linker command failed exit code", fixed compiling twice.
here's specs:
os x 10.11.4
core i7 skylake 4.0ghz
16 gb ddr4 ram
256gb ssd
i'm thinking building system running os x dual processors might alleviate issue, since can take upwards of 2 minutes compile code that's different 1 line.
welcome swift! great language, awful tooling.
joking aside, there couple of issues @ play here. first off, syntax highlighting disappears when sourcekit crashes. sourcekit library parses swift on-the-fly xcode can things indexing, syntax highlighting , code completion. it's lot better used (using swift 1.0 in xcode comical @ times), it's still far perfect. until sourcekit improves, won't see difference.
as build times, it's worth trying swift build time analyzer see functions taking particularly long time compile. halved compile time of project work on removing lazy vars set via closures. recent compiler change made type inference these sorts of closures incredibly slow, each 1 taking ~6 seconds compile.
Comments
Post a Comment