xcodebuild -exportOptionsPlist does not work with 'method' node

Originator:biran.monkey
Number:rdar://22826675 Date Originated:09/23/2015
Status:Duplicate Resolved:
Product:Developer Tools Product Version:7.0
Classification: Reproducible:100%
 
Calling this on the archive

xcodebuild -exportArchive -archivePath ./build/App-1.0.9.33.115-ent.xcarchive -exportPath ./build/App-1.0.9.33.115-ent -exportOptionsPlist ./Scripts/Beta.plist


Console shows expected {} but -help shows it should be a String

Steps to Reproduce:
Archive is in subfolder ./build/
Plist is in subfolder ./Scripts/
Using Xcode7 (6 worked just fine with the old xcodebuild options)


I've already assembled the archive via:

xcodebuild archive -workspace App.xcworkspace -scheme App -archivePath ./build/App-1.0.9.33.115-ent.xcarchive

Trying to use the old options with the new xcodebuild generates a binary with more than one bundle that cannot be archived

Expected Results:
Should export the archive successfully with the right profile for provisioning

Actual Results:
Failed to export.


2015-09-23 12:00:07.251 xcodebuild[53693:291426] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/9n/jkt6118154z5zmr220vsl7lh0000gn/T/App_2015-09-23_12-00-07.250.xcdistributionlogs'.
error: exportArchive: exportOptionsPlist error for key 'method': expected one of {}, but found enterprise

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'method': expected one of {}, but found enterprise" UserInfo=0x7fa36062cad0 {NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found enterprise}

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!