xcodebuild test hangs when piping it's output
Originator: | julian | ||
Number: | rdar://27447948 | Date Originated: | 7/20/2016 |
Status: | Duplicate/27558326 (Closed) | Resolved: | |
Product: | Developer Tools / Xcode | Product Version: | 8.0 beta 3 |
Classification: | Reproducible: | 100% |
Summary: The command `xcodebuild test | tee xcodebuild.log` (or piping to any other command) hangs forever. This is especially bad since CI systems like Jenkins need JUnit output in XML format. This is done by piping xcodebuild’s output into commands like xcpretty. So in other words: `xcodebuild test` is currently completely unusable for CI. Steps to Reproduce: Open the attached XcodebuildHangs.zip and call `./test.sh`. XcodebuildHangs.zip contains a new Xcode project with 1 unit and 1 UI test. test.sh calls `xcodebuild test | tee xcodebuild.log`. Expected Results: xcodebuild runs all tests, outputs all results and exits. xcodebuild.log contains the output. Actual Results: xcodebuild runs all tests, outputs all results, but never exits. Version: Xcode beta 3 (8S174q) Notes: `xcodebuild test` hangs since Xcode 8 beta 1. Everything works correctly in Xcode 7.3.1. Configuration: OS X 10.11.6 Xcode beta 3 (8S174q) Attachments: 'XcodebuildHangs.zip' - https://www.dropbox.com/s/eryw2caj03opzpy/XcodebuildHangs%20%28rdar%3A%3A27447948%29.zip?dl=0
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!