Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I exclude some files from Xcode's indexing?

Tags:

xcode

ios

I have an iOS project with 5600 files in the source code repository. Xcode appears to visit all of those files during its indexing. Some of the files are large images that I can see no benefit to indexing. How can I tell Xcode to exclude those files so that indexing will go faster?

I'm aware of several other questions and answers that describe how to disable indexing entirely, but I didn't find any that address how to keep indexing enabled and tell Xcode how to skip irrelevant files.

like image 592
Matt McClure Avatar asked Nov 12 '12 00:11

Matt McClure


1 Answers

One roundabout approach: Create one or more separate targets, and simply link to the object file(s) they produce.

like image 185
justin Avatar answered Nov 15 '22 06:11

justin