5.2.0 Editor fails to detect XCode on MacOS Sonoma Beta

What error are you getting specifically? Are you running an Apple Silicone Mac or an Intel one? Are you compiling the Engine from source?