4

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.

1 Answer 1

9

Echo just prints the variable. Try this:

FILE=${SCRIPT_INPUT_FILE_0}
`$FILE`
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot. It saved my time.
any option to execute this script programmatically rather than executing it on build time?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.