Oops. Forgot to mention, specifically for Xcode Cloud you'll want to create a directory called ci_scripts then a shell script called ci_post_clone.sh. Pop the defaults write command in there and that'll make Xcode Cloud happy.
Information about Xcode Cloud build scripts is here