Since I'm using Xcode 10.0, the amount of tasks which Xcode is building increases every time when I build the project. To reset the amount of tasks I have to clear the project. Can anyone else retrace this issue? The main problem is, that the build time increases with the amount of tasks.
EDIT
Same behavior in Xcode Version 10.1 (10B61)
The first time you build your project, Xcode builds everything, but subsequent builds are incremental. For each incremental build, pay particular attention to the preparation section and the specific tasks that Xcode performs for each target.
Xcode build timing summary You can run one via Product->Perform Action->Build With Timing Summary , which will give you a great breakdown of times spent on different tasks: This is a nice starting point to find out the most time-consuming tasks in your build process.
Xcode projects composed of multiple targets, one target may be dependent on another target to build. When one target is depending on another target to build then it creates dependency. Building the targets serially will take time and may not be good for utilizing system resources.
The Xcode build system manages the tools that transform your code and resource files into a finished app. When you tell Xcode to build your project, the build system analyzes your files and uses your project settings to assemble the set of tasks to perform.
Xcode 10 introduced a new build system, and it's not without bugs. I was able to reproduce the ever-increasing task count the same way you did. That's a lousy bug! release_notes To fix it search "User Header search paths" in build setting, and set it as NO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With