Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching in Xcode not finding results (searching my source)

Tags:

search

xcode

I'm pulling my hair out on this and Google results are skewed since it thinks I want to find out how to code something.

My problem is that when trying to search my code with the String Matching box it finds nothing, even if I enter something that is on the screen below.

Is it Spotlight that is delivering these results? I'm not excluding anything in my Spotlight index so should I just rebuild the index?

like image 816
brs Avatar asked Sep 10 '25 05:09

brs


1 Answers

At the top of the Xcode search field, you probably want to select:

Find > Text > Containing

rather than any of:

Find > Text > Matching
Find > References > Matching
Find > References > Containing

I did not (knowingly) switch this to "Text Matching" or "References", but there it was set. "Text Containing" is a more useful search type for most searches.

like image 121
pkamb Avatar answered Sep 13 '25 01:09

pkamb