Xcode Autocomplete Not Working

Greetings.

So as the title states, Xcode autocomplete is not working for me. I have scoured the internet for any solutions and the rare ones that I have found do not work (including changing the install directory to have no spaces and following the steps shown in this link: UE4, Big Sur, Xcode).

Does anyone know a fix for this?

I am using Unreal Engine 4.26.2, Xcode 12.5.1, macOS Big Sur 11.4, and an M1 chip (Unreal Engine runs perfectly fine).

I can assert that this has been fixed on UE 5.3.
Using Xcode 15 beta with macOS Sonoma, and everything is working perfect. Autocomplete is back even when indexing isn’t finished, and it is not taking up all the RAM. Thanks Epic, this was long overdue.

1 Like

Ok, thanks you @EblenMacari ! your video gave me hope it could be fixed!

I’ve found and what was wrong with the missing “auto completion” and missing “jump to definition” in my Unreal Xcode projects:

TL:DR; I was creating my projects in the folder ~/Documents/Unreal Projects which has a space and the command to index files was failing as it considered the file path as 2 different files due to the space.

I’ve moved all my projects to ~/Documents/UnrealProjects with no spaces and auto completion and jump to definition restarted working.

More info:
I was able to find the indexing errors by turning the indexing log on for Xcode with command line command:

defaults write com.apple.dt.Xcode IDEIndexShowLog -bool YES

With this option on, you can see indexing logs in the “Report Navigator”

image

and click on the button at the right of the error to show the error details:

Even if now completion works for me, I still have several indexing errors but I’ve noticed I installed the engine in ~/dev/Epic Games/UE_5.3, with a space too, so I’ll try to reinstall it to a different folder without spaces and hope my experience with xcode will be better.

Hope this helps
Cristiano