Xcode 7.2: Problems with code coverage for Mac app

Originator:thedov
Number:rdar://24207142 Date Originated:15-Jan-2016 11:57 AM
Status:Closed Resolved:Duplicate of 22838296
Product:Developer Tools Product Version:Xcode 7.2 (7C68)
Classification:Serious Bug Reproducible:Always
 
Summary:
When I run my Mac app’s unit tests in Xcode, the GCDA and GCNO files for all of the system frameworks I link against (e.g. Foundation, CoreData) get placed in my project’s root directory. When I run my tests, an exception is thrown after the tests run, and the following message is spit out too many times to count: “profiling: <source dir>/CoreData.gcda: cannot merge previous GCDA file: corrupt arc tag (0x00000000)”

Steps to Reproduce:
Build and test my project

Expected Results:
Tests run and produce coverage results

Actual Results:
GCDA and GCNO files end up in the project directory, and the tests fail to report success or failure

Regression:
This never happened for the same project under Xcode 6

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

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!