2

How can a build script figure where xcodebuild places the resulting application when calling xcodebuild -scheme MyScheme archive ?

I understand that you can control the location via Xcode preferences but I would actually like to be able to specify this in the command line for my build script while keeping the default build location during development.

1
  • 1
    You can control the root location of other xcodebuild build artifacts with the argument DSTROOT="preferred/result/directory", but that doesn't work with xcodebuild archive. I am trying to find out to control the same thing and am not having any luck. I have looked here: developer.apple.com/library/mac/#documentation/DeveloperTools/… ... but it hasn't helped, even though it seems like a good place for such info. Commented Dec 21, 2011 at 1:08

1 Answer 1

1

I have had minor luck with the following approaches:

  1. Fiddle with the environment variable BUILT_PRODUCTS_DIR. I remember this was somewhat infuriating.
  2. Check out this answer.
  3. I used the method outlined here, and did not fall too deeply into madness.

Plenty of ways to skin a cat, but remember you always end up with stains in your carpet.

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.