1

Xcode 8 constantly rebuilds my entire project for every line change, it is very frustrating and slows down the machine tremendously. Why does this happen, and how can I fix it ?

joern
  • 27,354
  • 7
  • 90
  • 105
KML
  • 2,302
  • 5
  • 26
  • 47
  • 1
    Do you have an `IBDesignable` view anywhere? If I remember correctly, they can cause constant reloading of the interface builder. – ezcoding Oct 03 '16 at 17:34
  • @ezcoding Yes, one view. Surely Xcode cant be THAT buggy? – KML Oct 03 '16 at 17:35
  • Well, it has to reload the interface builder to display the changes. Anyway, remove the `@IBDesignable` and associated keywords and look if the constant recompiling goes away. – ezcoding Oct 03 '16 at 17:36
  • @ezcoding But the IBDesignable is not at all related to the viewController I am working on – KML Oct 03 '16 at 17:41
  • using storyboards? – Bista Oct 03 '16 at 17:41
  • @ezcoding Yes I am – KML Oct 03 '16 at 17:42
  • I had a similar problem a while ago and this is how I fixed it. Now I can't say for sure that you are experiencing the same thing I did, that's why I'm commenting and not handing it in as proposed answer ;) – ezcoding Oct 03 '16 at 17:45
  • Check this answer http://stackoverflow.com/questions/28476030/xcode-keeps-building-storyboard-after-each-keystroke – Reinier Melian Apr 03 '17 at 21:05

2 Answers2

1

Try removing IBDesignable if you use any in your classes. I had the same problem with Xcode 9 and it fixed it.

Bretsko
  • 608
  • 2
  • 7
  • 20
0

Go to Product -> Scheme -> Edit Scheme. Select Build in left side column and uncheck "Find implicit dependencies"

But this flag should remain checked when you are building the project for first time.

Read about Find implicit dependencies in detail here.

pkc456
  • 8,350
  • 38
  • 53
  • 109