Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run script from shell script file in Xcode?

Tags:

shell

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.

like image 429
manismku Avatar asked Jan 04 '23 07:01

manismku


1 Answers

Echo just prints the variable. Try this:

FILE=${SCRIPT_INPUT_FILE_0}
`$FILE`
like image 161
CodeR70 Avatar answered Jan 13 '23 15:01

CodeR70