10

I run a script during a build phase.

Xcode lets you define user-defined build settings. I thought I would use these settings to store values or paths that I want to pass to the script.

Is this possible? How can I pass user-defined build settings to script during the build phase? Can you point me at some documentation or tutorial?

I am using Xcode 4.3.1

1 Answer 1

4

All you need to do is use the appropriate form of the variable name, depending where you are using it.

Eg: $foo in the run script dialog box.

Sign up to request clarification or add additional context in comments.

1 Comment

do you know how long these vars last? They seem to be gone by the time I access them in my script... :(

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.