Sometime between Aug 19, 2022 at 3:19pm CA time and Aug 21 at 1:25pm CA time, there seems to have been a change in XCode cloud which made the /usr/local
directories unreadable by whatever user is running the ci_post_install.sh
script.
This makes homebrew basically broken and essentially makes XCode Cloud unusable.
The only workaround I can think of is to do a user-only install of homebrew and run the user-only brew commands. However, I'd like to get an answer from Apple on if that is necessary.