[OSX] Generate Xcode Project fails on first attempt

For some reason the Xcode project generation fails the first time I try to generate. Here is the output:

On a second attempt it works.

Any idea what could be causing this?


Hello Plotnus,

What version of this engine are you using? Can I assume from the background that you’re trying to generate project files for a UE4 code project rather than for the editor itself? Are you using a source built version of the engine or a Binary one downloaded from the Epic Games Launcher?

Engine Version: 4.10.2 Build Version: Binary Download. Yes, I’m trying to generate project files for the UE4 project. Thanks.

Based off the first message in that picture, it seems that this project is part of a perforce repository and the files that the Generate Project Files process is trying to edit are marked as Read-Only due to not being checked out. Could you check on this to see if this is the issue? It lists one of the files there but there may be others that need to be marked as writable for this to work.

That’s true, the Binaries folder is mapped to the depot. Should I delete that folder from the depot?

P.S. Thanks for all the help so far. I think you’ve found the problem, I’m just going to wait on removing binaries from vc until I here back although I don’t see a reason to have them under VC.

You shouldn’t need to remove them from the depot, but if you plan to have each person using this perforce repo to compile the project themselves whenever they pull it from the repository, that would reduce some download times as well. The entire binaries folder is generated when the code is compiled so it doesn’t necessarily need to be part of the source control.

If you do wish to keep the binaries there however, you should be able to right-click the files in Perforce and change their filetype to be +w which will make them writable.

Ok. Ty. I no longer get that wall of text on first use.