Xcode build keeps crashing

Hi, I just modified my build setup. Now, Xcode project build crashes.

From command line everything seems fine.

xcodebuild

** BUILD SUCCEEDED **

Here is the stack-trace of crash-report showed:

Thread 5 Crashed::  Dispatch queue: com.apple.root.default-qos.cooperative
0   SWBCore                       	       0x10161da08 ClangCompilerSpec.constructTasks(_:_:) + 8636
1   SWBTaskConstruction           	       0x10119cee5 FilesBasedBuildPhaseTaskProducerBase.constructTasksForRule(_:_:_:) + 1
2   SWBTaskConstruction           	       0x1012202cd SourcesTaskProducer.constructTasksForRule(_:_:_:_:_:) + 1
3   SWBTaskConstruction           	       0x1011a11b9 closure #1 in FilesBasedBuildPhaseTaskProducerBase.addTasksForRule<A>(groupContext:_:_:_:_:_:_:) + 1
4   SWBTaskConstruction           	       0x10115fe89 <deduplicated_symbol> + 1
5   SWBTaskConstruction           	       0x1011547a1 <deduplicated_symbol> + 1
6   SWBTaskConstruction           	       0x1011da831 <deduplicated_symbol> + 1
7   SWBTaskConstruction           	       0x1011d53b1 specialized FilesBasedBuildPhaseTaskProducerBase.addTasksForGroup<A>(_:_:_:_:_:_:) + 1
8   SWBTaskConstruction           	       0x1011c7f8d specialized FilesBasedBuildPhaseTaskProducerBase.groupAndAddTasksForFiles<A>(_:_:_:filterToAPIRules:filterToHeaderRules:_:extraResolvedBuildFiles:) + 1
9   SWBTaskConstruction           	       0x1011e655d SourcesTaskProducer.generateTasks() + 1
10  SWBTaskConstruction           	       0x10114d725 <deduplicated_symbol> + 1
11  SWBTaskConstruction           	       0x1011532cd closure #2 in closure #4 in BuildPlan.init(planRequest:taskPlanningDelegate:) + 1
12  SWBTaskConstruction           	       0x10115fe89 <deduplicated_symbol> + 1
13  SWBTaskConstruction           	       0x101152321 <deduplicated_symbol> + 1
14  SWBTaskConstruction           	       0x101152321 <deduplicated_symbol> + 1
15  SWBUtil                       	       0x100e32b0d <deduplicated_symbol> + 1
16  SWBUtil                       	       0x100e32b0d <deduplicated_symbol> + 1
17  SWBUtil                       	       0x100ec3271 <deduplicated_symbol> + 1
18  SWBUtil                       	       0x100e3554d <deduplicated_symbol> + 1
19  libswift_Concurrency.dylib    	       0x287e40ec5 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

regards , Joël

I have figured out, xcodebuild crashes because too many files are in place.

During build I extract about 70 dependencies from tarballs.

If modules are not extracted build starts with make, else not.

Xcode build keeps crashing
 
 
Q