Building from source won't generate UE4.xcworkspace file

Hi I’ve built UE4 from source several times but this is the first time I got trouble. After running Setup.command and GeneratProjectFiles.command in that order, there’s no UE4.xcworkspace file…

Setting up Unreal Engine 4 project files...

Setting up Mono
EngineFolder/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool 'EngineFolder/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='EngineFolder/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/bj/y9tj49y12cb64_3djrrbcc7w0000gn/T/tmp618ee9fe.tmp', CurrentDirectory='EngineFolder/Engine/Source/Programs/DotNETCommon/DotNETUtilities', Native error= Cannot find the specified file
EngineFolder/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool 'EngineFolder/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='EngineFolder/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/bj/y9tj49y12cb64_3djrrbcc7w0000gn/T/tmp536ad99f.tmp', CurrentDirectory='EngineFolder/Engine/Source/Programs/EnvVarsToXML/EnvVarsToXML', Native error= Cannot find the specified file
Cannot open assembly '../../../Binaries/DotNET/UnrealBuildTool.exe': No such file or directory.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

These are what happened in GeneratProjectFiles.command, I don’t know much about this but it definitely look like it’s recognised my platform as Windows?

Thanks for helping!

Hello vito,

That definitely seems odd. I’ll be looking into this issue to see if we have any reports of it internally and possibly how to fix it. In the meantime, what version of OSX / Xcode are you running and could this be a Mac with dualbooting capabilities with Windows? It still shouldn’t do this but the more information, the better in this case.

Hi thanks for helping. I’m running 10.11.4 and 7.3(7D175). I don’t have a bootcamp windows but I do have a parallels desktop windows VM. It wasn’t running when I executed all these .command files though.

BTW, I’m trying to re-download the source codes and have a question about the setup.command: can I download the almost 4G data somewhere else? It’s just painfully slow using the Terminal…

There’s one issue that we have in our database at the moment that could be causing this, but it’s hard to tell from those messages. Can you check all of the file paths above your engine version to ensure that the folder names don’t include any spaces? This has been known to cause problems in the past on Mac.

Hi , thank you! You totally solved it!

Can I put the spaces back to the folder names after generating the project files?

Most likely, but I’m not sure as I’m unsure which part of the generation process is actually having a problem with it. You could add them back and just remember that the spaces could cause problems in case you run into another issue.

Hi , thank you! You totally solved it!

Can I put the spaces back to the folder names after generating the project files?

Most likely, but I’m not sure as I’m unsure which part of the generation process is actually having a problem with it. You could add them back and just remember that the spaces could cause problems in case you run into another issue.

Just wanted to note that this is still an issue (in my case it occurred because the drive name “Samsung SSD EVO…” has spaces in it.) Moving my UE4 folder to my primary drive fixed it.

This is still an issue.

The spaces thing was the issue for me too.

I literally had to remove one space from my folder name to get generateprojectfiles.command to work. Thanks for the help