The ResultBundle as generated by xcodebuild appears to have regressed from Xcode 9 to Xcode 10

Originator:markos
Number:rdar://46774442 Date Originated:December 17 2018, 2:13 PM
Status:Open Resolved:
Product:Xcode Product Version:10.1
Classification:Other Bug Reproducible:Always
 
Summary:
The Info.plist of the ResultBundle as generated by xcodebuild is missing some data that at least in Xcode 9 (e.g. Xcode 9.4, Build version 9F1027a) where present. More specifically, the "xcodebuild build" command for a project that has errors, no longer lists the "target" where the error occurred.

Unzip the attached "project-with-build-errors.zip" for a sample project

Steps to Reproduce:
* In the terminal, change directory to `project-with-build-errors`
* Run the following command

xcodebuild -project project-with-build-errors.xcodeproj -scheme project-with-build-errors -configuration Debug -destination 'generic/platform=iOS' clean build -derivedDataPath ./DerivedData -resultBundlePath ./ResultBundle

Expected Results:
The `ResultBundle/Info.plist` to include a "target" entry for each Item under the "ErrorSummaries" Array.

Actual Results:
The `ResultBundle/Info.plist` is missing a "target" entry

Version/Build:
* Xcode 10.1, Build version 10B61
* Xcode 10.0, Build version 10A255

Configuration:
macOS Mojave 10.14.2

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!