Different agents for Xcode + sonarqube

Hello, I’m trying to use sonarqube and Xcode build tasks in different machines (through azure pipelines).
in Xcode build stage I save compile_commands.json into artifacts and then download it on Sonarqube stage.
Then I copy this file into sonarqube-database folder. But when I launch sonarqube analysis I have error:
##[error]java.lang.IllegalStateException: "vfsoverlay" file used during build doesn't exist, please make sure you are not cleaning build files before launching the analysis. The missing file: /Users/mobile-ci/Library/Developer/Xcode/DerivedData/TestApp-dlnzwswzwtvctfawkvvwkdfpcpmh/Build/Intermediates.noindex/Pods.build/Release-iphoneos/UICKeyChainStore.build/all-product-headers.yaml
My question is which additional files from build task I have to pass into sonarqube-database and sonarqube-cache for avoid this kind of errors?

Hey there.

I think it makes sense to start with this question: why do you want to run the build and analysis on different agents?

Hello, for the improve CICD performance. I have some pipelines where I don’t need sonarqube but I need build stage. And as I already have build stage I just want to add new stage for the sonarqube.
This stage can be run in another agent (machine) cause I have many Macs in pool. Generally I need it for avoid double project building cause it takes a lot of time usually