Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6.3 always does full rebuild of Swift project

One of the long anticipated features of Swift 1.2/Xcode 6.3 is incremental builds. They worked fine for me until recently, but now almost every time I change even a single line of code it does full rebuild.

I tried restarting Xcode, computer, cleaning derived data, but to no avail. Googling doesn't seem to reveal anything.

Does anyone else have this problem? How do I fix it?

like image 577
Andrii Chernenko Avatar asked Apr 16 '15 11:04

Andrii Chernenko


2 Answers

I think that this is what you searching for enter image description here

like image 158
imike Avatar answered Nov 15 '22 23:11

imike


I am not this is a source of the problem. According to https://developer.apple.com

Swift Performance

A new compilation mode has been introduced for Swift called Whole Module Optimization. This option optimizes all of the files in a target together and enables better performance (at the cost of increased compile time). The new flag can be enabled in Xcode using the “Whole Module Optimization” build setting or by using the swiftc command line tool with the flag -whole-module-optimization. (18603795)

like image 36
Andriy Slyusar Avatar answered Nov 15 '22 22:11

Andriy Slyusar