Search code examples
iosiphonexcodexcode4.4

Lost completion in #import "myFile.h"


Since I had Xcode 4.4, I have lost the completion when I want to import file on my classes. I have to write the file entirely (The problem appears only in the import scope, it works elsewhere)

Has anyone the same problem and know how to figure out ?


Solution

  • Go to your project --> build settings --> User Header Search Paths and add $(SRCROOT)

    That works for me.

    Edit (another solution) : Sometimes I lost autocompletion randomly in my import scope. I fix it by typing the double quotes #import "" before typing my class between with the autocompletion.