xcode 计划和构建预操作脚本输出?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13616156/
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
Scheme and Build Pre-Action Script Output?
提问by jww
I have a scheme in Xcode 4. I edited the scheme so that Buildhas a Pre-Action, and that action is a script.
我在 Xcode 4 中有一个方案。我编辑了该方案,以便Build有一个Pre-Action,并且该操作是一个script。
The script is simple - it dumps pre-processor defines: cpp -dM < /dev/null
.
该脚本很简单-它转储预处理器定义:cpp -dM < /dev/null
。
Where do I find the output of the script?
我在哪里可以找到脚本的输出?
回答by hsarret
add this line to pre-action script
将此行添加到预操作脚本中
pwd > ~/current_directory.txt
then check file current_directory.txt in your home directory
然后检查您的主目录中的文件 current_directory.txt