14

When I run xcodebuild the output directory is set to: /Users/name/Library/Developer/Xcode/DerivedData/project-fybdjyuardwltihdwcfbwmguufrw/Build/Products/

How can I manually set the output directory of xcodebuild?

S-K'
  • 3,188
  • 8
  • 37
  • 50

1 Answers1

11

You need to specify -archivePath command line option. If works from version 5+.

This location is also available under ARCHIVE_PATH variable in a defined post build under archive action in xcode.

Brad The App Guy
  • 16,255
  • 2
  • 41
  • 60
Opal
  • 81,889
  • 28
  • 189
  • 210