Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What types of languages are supported in Xcode build phases run script?

I am new to scripting but I need to learn it for a script I need to run in the build phases of an Xcode project.

What types of scripts can I write in there? What types of languages are supported? Is there one scripting language easier to learn than others?

Just looking to get a point in the right direction here.

Thanks a bunch.

like image 271
Lizza Avatar asked Nov 04 '22 02:11

Lizza


1 Answers

The correct answer would likely be: "a script that works in any shell that comes with MacOS"

On my Mountain Lion machine, I see:

[/]:; 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

You can specify the shell you want in the "Shell" field of the Run Script panel when you're creating your build script. It looks like this:

Enter The Shell Here

like image 173
Michael Dautermann Avatar answered Nov 10 '22 16:11

Michael Dautermann