Search code examples
xcode4buildxcodebuild

Is it possible to change Xcode's default location for iOS .xcarchive bundles?


Xcode creates its .xcarchive bundles here: "~/Library/Developer/Xcode/Archives/ProjName MM-DD-YY h.mm AM.xcarchive"

This is fine for an individual developer, but it's not so cool for an automated build in a controlled workspace, one that has to copy every production build's xcarchive(s) to a posting location.

Is it possible, on the xcodebuild command line, to change the target directory for writing the .xcarchive bundle? I've done a lot of searching and nobody else seems to be asking this question. I can find a lot of info that tells me what I've already told you, but nothing about modifying the home of .xcarchive bundles. I have tried changing DSTROOT and SRCROOT.

Thanks.


Solution

  • Use Xcode's Location preferences to change the default location for archives.

    enter image description here