I just got a new iMac and tried to install and open Unrean Engine with no luck/ Xcode error ugh

This terrible code for this code for that then you install it and it won’t work. I start my Unreal Engine 5.2 from Epic Games platform and it gives me an Xcode error drop down and initializing at 0% which means my Unreal Engine won’t even start. What can I do if anything? I have a brand new iMac and am trying to start Unreal Engine 5.2