Launching Unreal with Mac 10.15

Did you try this?

Hi! I downloaded the epic games launcher and unreal engine and everything was working fine until I tried to launch it. It gave me this error message: “Can’t find Xcode install for Metal compiler. Please install Xcode and run Xcode.app to install license or ensure active developer directory is set to current Xcode installation using Xcode-select.”
So I downloaded Xcode for 10.15, Catalina. that also worked fine. But unreal still won’t launch and gives the same error message. does anyone know what I should do from here?