Unreal Engine requires compiling metal shaders in Xcode. To continue, install Xcode and open the program to accept the terms of the license agreement. If you are installing Xcode in a directory other than Applications/Xcode, run xcode-select on the command line and specify the actual location.