Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The amount of Xcode tasks increase after every build

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.

Build 2

Build 1

EDIT

Same behavior in Xcode Version 10.1 (10B61)

like image 874
PascalS Avatar asked Sep 26 '18 14:09

PascalS


People also ask

What is incremental build Xcode?

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.

How does Xcode measure build time?

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.

Why does Xcode build take so long?

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.

How does Xcode build system work?

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.


Video Answer


1 Answers

enter image description hereXcode 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

like image 147
Rishi Indolia Avatar answered Oct 14 '22 10:10

Rishi Indolia