What permissions are required for “Run Script” during a build phase?

我与影子孤独终老i 提交于 2019-11-30 08:21:52

You can simplify your Xcode project file a little further and not require the "bin/sh " in front of the script name.

To avoid this, you need to turn on "execute" permissions for users (Xcode in this case) of the file.

Steps

  • Go into terminal
  • Navigate to where your script is
  • run chmod 755 yourScriptName.sh
Android63

Put /bin/sh in front of the path to the script name.

/bin/sh /Users/superman/Documents/Projects/SomeProject/scriptname.sh

Just use

chmod u+x nameofscript.sh

Thats it .

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