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
performance compilation xcode swift


source to share


No one has answered this question yet

See similar questions:

179
Why is Swift compiling so slow?

or similar:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2847
Improve SQLite performance per second per second?
1406
Why does changing 0.1f to 0 slow down performance by 10x?
928
How do I call Objective-C code from Swift?
902
# pragma in Swift?
870
Swift Beta: Sorting Arrays
656
#ifdef Swift replacement
499
Why does C ++ compilation take so long?
179
Why is Swift compiling so slow?
12
IOS build size with Swift 3 and pods



All Articles
Loading...
X
Show
Funny
Dev
Pics