Generating Xcode project wrongly with source build engine on Mac

Hi guys,

I have a binary build engine and a source build engine. Both are 4.3.1 version. I want to switch unreal engine version of a project from binary build to source build. After switching, I click the “Generate Xcode Project”, but the generated Xcode project doesn’t seem correctly. The “Source” folder in Xcode doesn’t cover all engine sources, like pictures below:


Even if the project is created from the source build editor (right now the Xcode project is correctly with full engine source code), after I click the “Generate Xcode Project” from the context menu of .uproject file, the Xcode project is changed to the wrong one.

When I click the “Refresh Xcode Project” button in the editor, it will generate the correct Xcode project, like the one below:


I’d like to know what’s going on here, and how to generate correct Xcode project If I want to use the “Generate Xcode Project” in context menu of .uproject file. Thank you!

Could you please paste the output from the terminal window that shows when you generate the Xcode project? Thanks!



It certainly seems that you’re doing everything correctly, so this may be some bug in our project generator that we’re not aware of. Let me check a few things and get back to you soon.

It looks like it’s a bug :frowning: Command line params used to generate the project have changed recently and Mac services app (which provides right-click menu options for .uproject file) was not updated to reflect that :frowning:

To be precise, when it’s executing script, it misses -engine param. I’ll make sure that’s fixed soon, but for now you can work around this problem by editing your script in /Users/shenqian/UnrealEngine/Engine/Build/BatchFiles/Mac and add -engine to its last line:

mono …/…/…/Binaries/DotNET/UnrealBuildTool.exe -XcodeProjectFile “$@” -engine

Apologies for inconvenience.

That works. Thanks, Michael.