Xcode doesn't display static framework's test code coverage

Number:rdar://41024315 Date Originated:June 11 2018
Status:Closed Resolved:No
Product:Developer Tools Product Version:Xcode 9.3 (9E145)
Classification:Other Bug Reproducible:Always
Xcode successfully generates and displays test coverage for any source files in iOS application or CocoaTouch framework targets. When Mach-O Type is changed to Static Library for CocoaTouch framework targets, test coverage is no longer displayed.

Steps to Reproduce:
Sample project is located at: https://github.com/cihancimen/StaticFrameworkCodeCoverage

1. Create an iOS app project with unit tests.
2. Create an CocoaTouch framework with unit tests.
3. Change CocoaTouch framework's Mach-O Type to Static Library.
4. Drag & Drop CocoaTouch framework's Xcode project into one of iOS App's groups.
5. Add CocoaTouch framework as a target dependency to the iOS App target.
6. Enable Gather Coverage Data for both targets.
7. Run Product -> Test.

Expected Results:
Both application target and framework target's test coverage is displayed.

Actual Results:
Only application target's test coverage is displayed.

Version 9.3 (9E145)


Response from Apple Developer Technical Support

"Thank you for contacting Apple Developer Technical Support (DTS). Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations."

By cihan.cimen83 at July 5, 2018, 11:47 p.m. (reply...)

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!