Xcode——什么是 $(SRCROOT)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3719289/
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
Xcode -- what is $(SRCROOT)?
提问by William Jockusch
I am looking at an Xcode project that uses some libraries. The project was created on a different computer, so I need to update some paths. The library search paths all start with $(SRCROOT)
. What does that mean?
我正在查看一个使用一些库的 Xcode 项目。该项目是在另一台计算机上创建的,因此我需要更新一些路径。库搜索路径都以$(SRCROOT)
. 这意味着什么?
回答by mipadi
It's the path to the directory containing the Xcode project.
它是包含 Xcode 项目的目录的路径。
回答by Jurgis
That's basically your project root directory defined by Xcode.
这基本上是由 Xcode 定义的项目根目录。