Exclude a file from Xcode when searching

China☆狼群 提交于 2019-12-05 11:30:14

You can define custom search scope for your search. Custom scope can be define, save, and reuse specific location and file criteria for searches.

Now you can add as as many file names as you want.

More details on how to use custom search scope can be found here- https://developer.apple.com/Library/ios/recipes/xcode_help-search_navigator/articles/adding_a_search_scope.html

Xcode 9 update

Here are examples to search including or excluding file names, file extensions, etc

I prefere to use regexp. example for excluding unit tests files "foo_unittest.cc" or "foo_test.m"

^.((?!test).)*$

dropdown fields conditions:

  • "File name"
  • "matches regular expression"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!