manismku
manismku

Reputation: 2180

How to run script from shell script file in Xcode?

I have created a shell script file - builscript.sh - and want to run it during Xcode build. Here is my configuration in Xcode

build setting

However, when I try to build my project script doesn't run.

Upvotes: 4

Views: 6583

Answers (1)

CodeR70
CodeR70

Reputation: 467

Echo just prints the variable. Try this:

FILE=${SCRIPT_INPUT_FILE_0}
`$FILE`

Upvotes: 9

Related Questions