5

我是脚本新手,但我需要学习它以获取我需要在 Xcode 项目的构建阶段运行的脚本。

我可以在那里写什么类型的脚本?支持哪些类型的语言?是否有一种脚本语言比其他脚本语言更容易学习?

只是想在这里找到正确的方向。

谢谢一堆。

4

1 回答 1

2

正确的答案可能是:“适用于 MacOS 附带的任何 shell 的脚本”

在我的 Mountain Lion 机器上,我看到:

[/]:; more /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

创建构建脚本时,您可以在“运行脚本”面板的“Shell”字段中指定所需的 shell。它看起来像这样:

在此处输入外壳

于 2013-03-10T01:04:19.493 回答