Xcode search not working properly
- Click on searchfield
- Select
Find
above the searchfield - 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
I recently had this issue (which is how I found this post). In my case, everything was set as it should be:
- Find
- Text
- Containing
- 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.