1

In Xcode > Preferences > Locations > Derived Data, you can specify a location for your derived data location.

I'm building a script and I'd like to be able to infer this location from the command line. I don't see anything in the Xcode app files.

Is there any way to read the current settings of Xcode from the terminal? It isn't a sensitive operation and doesn't need to be perfect.

1 Answer 1

4

All the information of the build are in the project file.

You can get all build settings with:

xcodebuild -project yourapp.xcodeproj -showBuildSettings

then you can use a grep to get the build dir:

xcodebuild -project projectname -target targetname -showBuildSettings | grep -m 1 "CONFIGURATION_BUILD_DIR"
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.