都需要与QUOT哪些权限;运行脚本"在构建阶段? [英] What permissions are required for "Run Script" during a build phase?
问题描述
在运行脚本打造我的项目的第一阶段,如果我在剧本输入到在构建阶段运行脚本文本框中一切正常。
In the "Run Script" build phase of my project, everything works if I type in the script into the text box for "run script" in build phases.
但是,为了使编辑/版本比较容易等,我以为我会脚本保存为一个文件作为我的项目的一部分,只需填写路径文本框中,而不是:
But to make editing / diffing etc easier, I thought I would save the script as a file as part of my project, and just fill in the path in the text box instead:
例如:我粘贴在文本框中输入以下路径。
Eg: I paste the following path in the text box.
/Users/superman/Documents/Projects/SomeProject/scriptname.sh
但是,当我尝试建立这个,我得到一个权限被拒绝的消息。
But when I try to build this, I get a "Permission Denied" message.
我能做些什么来解决这个问题?如果我剪切/粘贴实际code,那么它只是工程。我的用户帐户是管理员帐户。没有其他人使用我的机器。
What can I do to fix this? If I cut/paste the actual code, then it just "works". My user account is an administrator account. No one else uses my machine.
推荐答案
将 / bin / sh的
中的路径脚本名称前面。
Put /bin/sh
in front of the path to the script name.
/bin/sh /Users/superman/Documents/Projects/SomeProject/scriptname.sh
这篇关于都需要与QUOT哪些权限;运行脚本"在构建阶段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!