How can I exclude some files from Xcode indexing?

I have an iOS project with 5600 files in the source code repository. Xcode seems to be visiting all of these files during indexing. Some of the files are large images, which I see no use for indexing. How can I tell Xcode to exclude these files so that indexing speeds up?

I am aware of several other questions and answers that describe how to completely disable indexing, but I have not found an address like how to enable indexing and tell Xcode how to skip irrelevant files.

+8
ios xcode
source share
2 answers

One circular motion approach: create one or more separate targets and simply connect to the object files they create.

+1
source share

justin the answer is good if you really need to create one or more separate goals. And I searched, but found that you can enable / disable indexing. In any case, I cannot exclude any file when indexing. And you do not allow the Xcode index, you lose some function, such as autocomplete (even for images you can see the autocompletion of the image name in InterfaceBuilder).

If you are really sure you want to disable indexing. Use this in terminal:

defaults write com.apple.dt.XCode IDEIndexDisable 1 

If you want to index back:

 defaults delete com.apple.dt.XCode IDEIndexEnable defaults write com.apple.dt.XCode IDEIndexDisable 1 

Another related article on How to Speed ​​Up Xcode by Solving Xcode Slow Issues with xcode 4.x

+1
source share

All Articles