Code Coverage is not accurately reported for code in Embedded Framework

Originator:kcharwood
Number:rdar://22092373 Date Originated:31-Jul-2015 11:08 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7 Beta 4
Classification:Serious Bug Reproducible:Always
 
Summary:
The Xcode 7 Beta 4 Release notes state the following known issue:

“Code Coverage
• Xcode does not show code coverage information for source files in static libraries.
Workaround: Add the source files directly to application or framework targets. (15605406)”

I have code and tests within frameworks, and their code coverage is not properly reported in the Report Navigator tab. When viewing the code coverage results in the actual source files, I can verify nearly the entire source file is covered, but in the Report Navigator it shows up as zero percent.

The workaround listed in the release notes does not appear to be accurate, and I currently do not get accurate coverage results for my framework targets.

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!