Error code when trying to launch UE 5.0.2 after install on MBP

After repeated installs, reboots and re-installs, continuing to get this error code in the UE editor, and unable to launch the program:
Can’t find Xcode install for Metal compiler. Please install Xcode and run to accept license or insure active developer directory is set to current Xcode installatiion using Xcode select.