I have our Xcode build system setup to place all build products in a pair of directories, one for Debug configuration and the other for Release using the build setting
BUILD_DIR = /Library/DevWork/BuildProducts
specified in a shared .xconfig file.
This worked fine up through Xcode 12.4 as the xcodebuild clean
command would delete only the target and leave all the other files in the build products directory intact.
New with Xcode 12.5, xcodebuild clean
deletes the entire contents of the build products directory. Is there a way to disable this behavior?