An old question, but now Xcode 7 GM has come out, and this behavior has not changed, I took a deeper look. I believe the problem is that code coverage of the target test program is contrary to code coverage by the main goal.
Assuming that you don’t really care about the coverage of your target topic code, these settings stop errors for me, without the need for additional scripts or deleting files:
For your main goal (whether it be a framework or an application):
Enable Code Coverage Support to YES Generage Legacy Test Coverage Files to YES Instrument Program Flow to YES
For my purposes, I did this only for building a Debug, but your needs may vary.
Then in your target test suite:
Enable Code Coverage Support to NO Generage Legacy Test Coverage Files to NO Instrument Program Flow to NO
This allowed error messages and still allowed code coverage files to be created accordingly.
Again, the question is old, but since the error still appears in Xcode 7, I found that this solution works better than deleting files with special scripts.
AJ Sep 09 '15 at 10:20 2015-09-09 22:20
source share