Xcode 15.1.0 autocomplete not working in UE 5.4.1

I have downloaded UE5.4.1 on my M1 MBP 16GB. Initially I was using VSCode with UE4.27 intel version in Big Sur. It worked well. Later after upgrading to Sonoma I have downloaded UE5.4.1 with Xcode 15.1.0. I was able to generate the Xcode project file but there is no option to open Xcode project in tools menu even after generating Xcode project file.

But the log says file has been generated so I manually went to that location in finder and opened the XCWorkspace file in Xcode 15.1.0. But the auto complete is completely dead and the Xcode is indexing too slowly.

Is there any fix for this. I have tried VSCode it has become worst for UE5 C++ development in M1 Mac the intellisense is completely busted, making it unusable. So I tried to use Xcode.

I did some research and found that in some cases we should not use the latest versions of Xcode. You can try Xcode 14.2. Also, I hope you can find a hint to solve this problem in the following link. I hope I understood your problem correctly. Unreal Engine 5 macOS: UE5 C++ Game Dev 🎮 | Rodney Lab