Downgrading to Beta 2 does work for me
I faced this problem when trying to set up Game Porting Toolkit based on instructions here: https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit earlier today. I am on macOS 14 (Sonoma) Beta 3.
I got pretty much the same error as everyone else on this thread. Following @Rukosenpa 's instructions worked for me. I installed only the command line tools for XCode 15 beta 3, not full XCode IDE. Here are the steps I took:
sudo su -
cd /Library/Developer
rm -rf CommandLineTools
After this, I did a reboot of my mac, and downloaded/installed XCode command line tools Beta 2 from here: https://developer.apple.com/download/all/
Finally I did: brew -v install apple/apple/game-porting-toolkit and it worked.