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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:33:02  来源:igfitidea点击:

Xcode -- what is $(SRCROOT)?

xcodepath

提问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 yoAlex5

$(SRCROOT)(aka $(SOURCE_ROOT)) is a path to your location where a.xcodeprojis.

$(SRCROOT)(又名$(SOURCE_ROOT))是您所在位置的路径.xcodeproj

It is simple to check, just put it in a field and Xcode gives you a tip

检查起来很简单,只要把它放在一个字段中,Xcode就会给你提示

enter image description here

在此处输入图片说明