In my build system, I am using xcodebuild to build multiple projects.
I want to configure different Xcode installation to be used per project.
I know about sudo xcode-select --switch <path>, but:
- This option is system-wide, and might mess up with other parallel builds.
 - It requires root, which I prefer to avoid (since it's an automatic build system).
 - It is not configured internally in the project.
 
Is there a way to specify the build tools path to use per project?
                        
From the output of
xcrun:E.g. to run xcodebuild with a specific Xcode-installation:
In a bash script: