I've been having trouble with the search (Command+Shift+F) function in in Xcode. I searched through the internet but didn't seem to find a solution. Seems to be failing only on a specific project (the other projects I work seem to be fine), and I use the 'search' option very often.
I's there some kind of "cache" for the Xcode search? And is there a way to reset that? Any ideas?
Here I am searching a string I've taken out from the project! So I am positive it should return a location inside my project.
If you want to search for text in the project, you should change the search parameters to:
Find > Text > Containing
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.
I recently had this issue (which is how I found this post). In my case, everything was set as it should be:
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.
Find
above the searchfieldFind > Text > Containing
then problem solved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With