Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the output directory of xcodebuild? [duplicate]

Tags:

ios

xcodebuild

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?

like image 874
S-K' Avatar asked Sep 02 '14 13:09

S-K'


People also ask

How do I change my output folder?

To change the output folder, you need to open the Data Merge Settings, by going to Data Merge > Options. Then scroll down to the Output Folder section, here is where you can change the output folder by clicking the 'Change Folder' button.

What is Xcodebuild command?

The XcodeBuild build helper is a wrapper around the command line invocation of Xcode. It will abstract the calls like xcodebuild -project app.

Where is Xcode build output?

It should by located in: ~/Library/Developer/Xcode/DerivedData . Save this answer. Show activity on this post. You can configure the output directory using the CONFIGURATION_BUILD_DIR environment variable.


1 Answers

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.

like image 71
Opal Avatar answered Oct 15 '22 21:10

Opal