Building Unreal Engine from Source on Mac fails

Hi,

Just trying to build Unreal Engine 4.19 for Google Resonance Audio on mac (10.14.5) with the most recent Xcode. I followed the Github installation instruction, and ShaderCompileWorker build fine, but UE4 fails with two following errors:

/Users/SJK/Downloads/UnrealEngine-4.19-resonance-audio/Engine/Source/Programs/UnrealHeaderTool/Private/CodeGenerator.cpp:2464: local variable ‘Result’ will be copied despite being returned by name [-Werror,-Wreturn-std-move]

/Users/SJK/Downloads/UnrealEngine-4.19-resonance-audio/Engine/Source/Programs/UnrealHeaderTool/Private/UnrealSourceFile.cpp:49: local variable ‘Out’ will be copied despite being returned by name [-Werror,-Wreturn-std-move]

Any help would be much appreciated!

Jun