Failed to find UnrealBuildTool.exe if the path includes a space character

To reproduce:

  1. Clone UnrealEngine repository from GitHub into the path including a space character like: /path/foo bar/UnrealEngine
  2. Execute Setup.sh and GenerateProjectFiles.sh
  3. Open UE4 Xcode workspace
  4. Build and it will be failed because it couldn’t find UnrealBuildTool.exe.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks