如何在 Xcode 中设置 $(SRCROOT) 的父路径
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14527376/
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
How to set parent path of $(SRCROOT) in Xcode
提问by user1135111
From the http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html%23//apple_ref/doc/uid/TP40003931-CH3-SW38, we can find Xcode's build settings like $(SRCROOT). But in my case, the header files is in a parent folder of $(SRCROOT). Is there a way to access that without put in the absolute path?
从http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html%23//apple_ref/doc/uid/TP40003931-CH3-SW38,我们可以找到 Xcode 的构建设置,如 $(SRCROOT)。但就我而言,头文件位于 $(SRCROOT) 的父文件夹中。有没有办法在不放入绝对路径的情况下访问它?
Thanks!
谢谢!
回答by Jim
The sequence ..
refers to the parent directory in almost all operating systems.
该序列..
指的是几乎所有操作系统中的父目录。
$(SRCROOT)/../OtherPath