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 ?
- Xcode 4.4 error - Timed out waiting for app to launch
- Automatically @synthesized properties in Xcode 4.4
- XCode 4.4 iOS 5.1 Simulator problems
- New Objective-c Literals in 4.4
- Localization - Add additional language to localizable.strings file
- Is there any way to get the neat Objective-C literal indexing feature in Xcode 4.4?
2 Solutions Collect From Internet About “Lost completion in #import “myFile.h””
Go to your project –> build settings –> User Header Search Paths and add
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.
Apparently this is related to having your files inside subfolders. It seems that while previous versions of Xcode’s codesense would list any headers added to your project, version 4.4 only lists the ones in the topmost folder in your project…
The solution I’ve found is to include those subfolders in the project’s “User Header Search Paths”.
For example, if you have a folder structure like this:
Source/ Example/ Util/ util.h Example.xcodeproj
By default, when you type
you’ll get the suggestion for the Util folder. If you let it complete that and continue typing:
you’ll get the util.h suggestion.
To get the usual autocomplete behavior, go to your project –> build settings –> User Header Search Paths and add Example to the list (double click on the setting, click the “+” button, write Example and make sure to turn on the checkbox to the left). When you close the little pop up, your setting should read something like Example/**, which means it’s including Example and every subfolder.
The new behavior (feature? bug?) was driving me crazy. Hope that helps.
- NSURLSession dataTaskWithRequest not being called
- viewDidAppear not getting called
- UIBarButtonItem created using initWithCustomView doesn't trigger action
- how to create a circle with rounded ends for each quadrant
- CGRect syntax I haven't seen before
- Writing handler for UIAlertAction
- Custom UITableViewCell height yields improper animation
- iOS: dispatch_get_global_queue QOS_CLASS_BACKGROUND crashes on 7.1.2
- fatal error: malformed or corrupted AST file – Xcode
- iOS Swift converting calendar component int month to medium style string month
- Undefined symbols for architecture x86_64 on Xcode 6.1
- Is clang Xcode 4.4.1 buggy when -fno-elide-constructors is set?
- Why does initial assignment to nil only happen once for a local static variable in a class method?
- How in Swift specify type constraint to be enum?
- Is there a way to invalidate NSBundle localization cache, withour restarting application?