简体   繁体   English

Xcode搜索无法正常工作

[英]Xcode search not working properly

I've been having trouble with the search (Command+Shift+F) function in in Xcode. 我在Xcode中遇到了搜索(Command + Shift + F)功能的问题。 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? 我在Xcode搜索中有某种“缓存”吗? 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. 尝试在搜索框中按Cmd-A然后按退格键以完全清除它。

1) click on searchfield 2)select find above the searchfield 3)change find>text>Containing 1)点击搜索字段2)选择在搜索字段上方查找3)更改查找>文本>包含

then problem solved 然后问题解决了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM