什么错误“版本'404 *',更喜欢'402 *'”意味着运行gcov

时间:2013-09-29 17:33:21

标签: xcode code-coverage travis-ci coveralls

尝试为Coverall构建覆盖数据我在Travis-CI构建期间收到以下错误消息:

DTHTMLWriter.gcno:version '404*', prefer '402*'
File '/Users/travis/build/Cocoanetics/DTCoreText/Core/Source/DTHTMLWriter.m'
Lines executed:67.00% of 497
/Users/travis/build/Cocoanetics/DTCoreText/Core/Source/DTHTMLWriter.m:creating 'DTHTMLWriter.m.gcov'
File 'Core/Source/DTHTMLWriter.m'
Lines executed:0.00% of 10
Core/Source/DTHTMLWriter.m:creating 'DTHTMLWriter.m.gcov'
Core/Source/DTHTMLWriter.m:cannot open source file
File 'Core/Source/DTHTMLWriter.h'
Lines executed:66.67% of 3
Core/Source/DTHTMLWriter.h:creating 'DTHTMLWriter.h.gcov'
Core/Source/DTHTMLWriter.h:cannot open source file

有覆盖率,即67%,但结果是Coveralls将此文件显示为0覆盖。

我该如何解决?

测试表明,在两种情况下,与Xcode 4和5版本4.2.1捆绑在一起的gcov工具会发生此错误。我觉得如果我在Mac上运行相同的单元测试,那么我就不会收到警告并找到文件。

让我相信gcov工具有处理iOS模拟器生成的某些gcda文件的错误。一些,不是全部。

结果覆盖率报告在运行iOS时缺少这些文件,但在Mac上已完成。

所以我的第二个问题是,是否有办法更改这些文件以允许gcov正确处理它们?

0 个答案:

没有答案