Try to find @IBDesignable and comment it. It solved my problem
I've been having issues as well. It seems connected to the use of CoreData. I have read through the comments and tried many of the suggestions...no improvement! Sooooo frustrating. I'll be reporting a bug...
Xcode 8.3.3 this issue still happen.
I just edit some code lines in a class file the xcode re-compile all source files ?
@Apple how do I help you reproduce/solve this problem plz, It's take us a lot of development time.
A completely justified rant, by someone with the scars.
Yet another year goes by, and the Xcode toolchain remains fundamentally broken.Version 9.0 (9A235)Xcode 9: can’t type a character in a Swift source file without the entire project rebuilding. Or sourcekitservice crashing. Or sourcekitservice gobbling up all available system RAM.
Year after year, Xcode gets new features added to it, and surprises are sprung on us at WWDC, but Xcode remains a basket case; a perennial Beta not suitable for production work.
What is the good of filing radars when they are ignored, and Xcode is released once a year for marketing purposes, obviously broken?
This is so incredibly poor. Xcode is not a professional development environment, and by extension, nor is iOS/macOS development. I’m sure individual engineers at Apple are committed to Xcode, but there is obviously a problem with tool leadership at the company.
Instead of adding new features to Playgrounds, how about FIXING Xcode’s most basic behaviours?
And how about a development roadmap, instead of springing major, broken releases on us once a year?
Maybe it’s time to open source the toolchain, ala Swift? It’s not like Xcode has any great business advantage for Apple right now.
Maybe Xcode should be forced through the same App Store review process we go through?
I was able to resolve this issue by adjusting settings in the build phases for my target.
We were using a custom script build phase step to insert preprocessing flags into one our cocoapod depedencies. Changing that .xcconfig file caused our project to re-compile on every build or run.
Checking the box ' Run script only when installing' underneath the script editor in the build phase step solved the issue immediately for us.
PROJECT SETTINGS > BUILD PHASES > (custom script) > click 'Run script only when installing'
Now I have my productivity back!!
Note: You may not have a custom script but I would inspect all of phases in case one is touching the config files for either your project or your dependencies.
I filed a radar for the original issue with the -driver-show-incremental setting crashing Xcode. I'm pretty confident at this point that the dependency graph is the source of our troubles with very long build times in Xcode (still in the latest 9.0 and 9.1), but without this flag working I'm not sure what options we have to troubleshoot.
Just adding to the pile, I miss objective-c.
I've tried all the suggestions uptill now, My compilation time is 2 minutes, when my project was pure objective-c, compile time was less than 20 seconds.
I feel my hair graying with each 6 minute build! And I regret using Swift everytime I see the "Compiling Swift files" when all I'm doing is running another set of tests without changes to the source files...
So, out the window almost 2020. The problem is still not solved.