UE4 C++ build failed

when i try to compile the editor shows error stating

could not produce Desktop/Unreal engine4/UdemyGame/Binaries/Mac/UE4Editor-UdemyGame-6658.dylib

and the compile fails.

WHAT DO I DO

You can post the error message, so people can find the problem