Xcode 中的“标题搜索路径”与“用户标题搜索路径”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3429031/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"Header Search Paths" vs. "User Header Search Paths" in Xcode?
提问by mindthief
What's the difference? When would you use either?
有什么不同?你什么时候用?
回答by JWWalker
Use the User Header Search Pathsfor paths you want searched for #include "..."
and use the Header Search Pathsfor #include <...>
. Of course, if you check the option to Always Search User Paths, then #include <...>
will also work for the user paths.
将用户标题搜索路径用于您要搜索的路径,#include "..."
并将标题搜索路径用于#include <...>
. 当然,如果您选中Always Search User Paths选项,则#include <...>
也适用于用户路径。