1

I don't want to set a global env-var, but it would be handy to set a single var in an XCode project which is then usable in the various build-steps. e.g I want to set MY_PATH = /usr/local/MyLib and then use $(MY_PATH) in search paths and ${MY_PATH} in script build-steps.

I'm using XCode 3.2.6. Is there a way to set project-local env-vars or similar?

Even better would be if it's not stored in the main project file so it can not be checked into source control - maybe I'm expecting it to be too similar to Visual Studio!

1 Answer 1

1

Add a user-defined build setting. Open the build settings inspector in Xcode 3.2.6 (Xcode 4 changed things considerably) by choosing Project > Edit Project Settings. In the lower left corner of the inspector is a button with a pull down menu. Click the button and choose Add User-Defined Setting.

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

Comments

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.