Reneli
Reneli

Reputation: 1866

how to set xcodebuild archive name and path

im using xcodebuild to automate my release process and would like to first do an:

xcodebuild -scheme MyScheme archive

and then build the ipa.

the problem is that xcodebuild puts the xcarchive is some obscure location and maes it include the date.

my question:

how can i override/force xcodebuild to name and place the acrhive whene i want it to go (/tmp)?

i tried:

xcodebuild -scheme MyApp archive ARCHIVE_PATH='/tmp'

but that didn't do anything

Upvotes: 4

Views: 1696

Answers (1)

Berend Klein Haneveld
Berend Klein Haneveld

Reputation: 156

This should do the trick:

xcodebuild -scheme MyScheme archive -archivePath "/tmp"

Upvotes: 3

Related Questions