Xcode7 (7A220): xcodebuild -exportArchive with new -exportOptionsPlist option chokes on 'method' key in plist
| Originator: | timothy.broder | ||
| Number: | rdar://29439498 | Date Originated: | 30-Nov-2016 11:20 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode7 (7A220) |
| Classification: | Serious Bug | Reproducible: | Always |
This is a duplicate of rdar://22740827
Summary:
Providing the -exportOptionsPlist option to the xcodebuild command with a plist file always fails with a message about the ‘method’ key, whether it is present or not.
Steps to Reproduce:
1. Create an archive using `xcodebuild … archive
2. Run the following command:
xcodebuild -exportArchive \
-archivePath "${ARCHIVE_PATH}" \
-exportPath "${IPA_PATH}" \
-exportOptionsPlist exportOptionsPlist.plist
Expected Results:
The build will produce an .ipa file according to the export options provided in the given plist.
Actual Results:
If the ‘method’ key is not present in the exportOptionsPlist.plist file:
2015-09-17 11:12:34.738 xcodebuild[68207:8073058] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_y/th2_pvnd6zv8pd9cm7ry_c200000gn/T/Release_2015-09-17_11-12-34.738.xcdistributionlogs'.
error: exportArchive: exportOptionsPlist error for key 'method': expected one of {}, but found (null)
Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'method': expected one of {}, but found (null)" UserInfo=0x7f8d7a587730 {NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found (null)}
** EXPORT FAILED **
If the ‘method’ key is present with a valid value documented in `xcodebuild -help` in the exportOptionsPlist.plist file:
2015-09-17 11:14:20.603 xcodebuild[69463:8085213] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_y/th2_pvnd6zv8pd9cm7ry_c200000gn/T/Release_2015-09-17_11-14-20.603.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=0x7fe72bcebe60 {NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found enterprise}
** EXPORT FAILED **
Notes:
https://forums.developer.apple.com/message/56334#56334
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!