Xcode search not working properly

  1. Click on searchfield
  2. Select Find above the searchfield
  3. Change to Find > Text > Containing

then problem solved


If you want to search for text in the project, you should change the search parameters to:

Find > Text > Containing

enter image description here


I recently had this issue (which is how I found this post). In my case, everything was set as it should be:

  1. Find
  2. Text
  3. Containing
  4. Ignoring Case

and it still would not find text.

It appeared to be in my case, a corrupted index. Quiting Xcode and deleting derived data - I Use DevCleaner from the App Store (not affiliated).

After that, I relaunched Xcode, waited a couple of minutes for the indexes to rebuild and everything works fine again.


You may have multiple lines in the search field which you cannot see.

Try pressing Cmd-A then Backspace in the search box to fully clear it.

Tags:

Xcode