The solution given is a bit out of date. If you try to move the "Epic Games" directory to remove the space and symlink it, it will cause lots of errors when launching projects of generating XCode projects.
Just to recap, the problem is that Unreal generates the XCode project in the wrong format. It leads XCode to believe that the space in the path is indicating a new path. So XCode cannot find the files to index for autocomplete.
The least fragile thing to do is fix the XCode project itself. However, doing this manually is a pain as it's a very long list of include files. So I created a script that will update the project for you. Here's how to use it:
- Download the python file
- Save it at the root of you project.
- Open a terminal an
cd
to the project root. - Run
python ./fix_xcode_autocomplete.py
- Open the XCode workspace.
- Open the game project.
- Select the Project target -> "Build Settings" -> Double click "User Header Search Paths"
- Check the list is populated correctly and close by clicking away.
Your indexing should now begin.