Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10 Objective-C #import filename completion not working

I've upgraded to Xcode 10 and realized that filename completion in #import statements are not working properly. Here is a small part of my project:

enter image description here

Here is what happens when I try to complete a filename:

enter image description here

I've restarted my Mac, cleaned build folders, did all the common "fixes", though nothing changed.

When I type the filename manually, I don't get any errors, everything compiles correctly, and code completion works perfectly too.

What might be wrong? Is there anything that I can do or is Xcode 10 inherently broken?

UPDATE: I'm on Xcode 10.1 and it's still broken.

like image 884
Can Poyrazoğlu Avatar asked Nov 08 '22 01:11

Can Poyrazoğlu


1 Answers

As "zhysan" pointed out on https://forums.developer.apple.com/thread/108523 this seems to be caused by the new build system.

This works for me:

File -> Project Settings... -> Build system -> Legacy build system.

like image 150
Gerrit Beuze Avatar answered Nov 15 '22 13:11

Gerrit Beuze