xcodebuild -exportArchive + OTHER_CODE_SIGN_FLAGS do not work

Originator:proger
Number:rdar://15107715 Date Originated:
Status:Open Resolved:
Product:Developer Tools Product Version:5.0
Classification: Reproducible:Yes
 
Summary:
-exportArchive fails when trying to use the signing identity from a 3rd-party keychain

Steps to Reproduce:
$ xcodebuild -archivePath App.xcarchive -exportArchive -exportFormat ipa -exportPath App.ipa  -exportProvisioningProfile "installed provisioning name"  OTHER_CODE_SIGN_FLAGS="--keychain /keychains/adhoc.keychain"

error: Code signing operation failed
** EXPORT FAILED **

Expected Results:


Actual Results:


Version:
$ xcodebuild -version
Xcode 5.0
Build version 5A1413
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.8.5
BuildVersion:	12F37

Notes:


Configuration:
However, using OTHER_CODE_SIGN_FLAGS + xcodebuild archive works well.

But, i'd like to not use archive multiple times (thus, rebuilding the app) for each other provisioning profile i need.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!