都需要与QUOT哪些权限;运行脚本"在构建阶段? [英] What permissions are required for "Run Script" during a build phase?

查看:128
本文介绍了都需要与QUOT哪些权限;运行脚本"在构建阶段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行脚本打造我的项目的第一阶段,如果我在剧本输入到在构建阶段运行脚本文本框中一切正常。

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆