Xcode 4: custom behavior does not execute my sh script?

末鹿安然 提交于 2019-12-02 00:51:27

Your script probably is running, but the output of such scripts is not piped to the debugger console. The output should be visible in the Console application (/Applications/Utilities/Console) as in the following example:


As for debugging this kind of thing, you can add the following line at the top of your script to send all output to a log file:
exec &>/path/to/logfile

You could then add something like this at the end of your script to allow you to peruse the log:

open -a TextEdit /path/to/logfile
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!