Fast compilation is insanely slow

My fast project becomes unusable due to huge compilation time.

I am on XCode 6.4, the project has about 50 files plus a kingdom database and about 10 pods (alamofire, locksmith, SwiftyJSON, Facebook, ...)

It takes about 20 minutes to compile it from scratch. Adding a simple line takes at least 5 minutes to compile and I figured it would recompile ALL files even for one line of changes.

I'm sure it doesn't have to be that way.

What actions should I take to improve this? What are the general parameters for a quick build? How can I avoid recompiling files for one change?

I've already tried general optimization options like the ones suggested here: Why is Swift compile time so slow? but nothing has helped so far.

UPDATE

The result of xctool ( xctool -workspace MyApp.xcworkspace -scheme MyScheme -jobs 1 build

) execution :

  • App itself: 3730559ms (about 1 hour)
  • Total amount (including pods and all): 4662682ms (1h17min)

One file takes 20 seconds to 60 seconds on average

I need to test another more powerful host, but anyway smth is definitely wrong and it's not that long a few days ago

+3


source to share





All Articles