GCOV的代码覆盖范围无法生成.gcda文件 [英] Code coverage with GCOV can't produce .gcda file

查看:620
本文介绍了GCOV的代码覆盖范围无法生成.gcda文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取有关GCOV的代码,我通过 http://developer.apple.com/library/mac/#qa/qa2007/qa1514.html

I want to get code coverage with GCOV, I set build setting by http://developer.apple.com/library/mac/#qa/qa2007/qa1514.html


  • 添加 -lgcov到其他链接器标志

  • 检查仪器程序流

  • 检查生成测试覆盖率文件

但是我无法生成.gcda文件,有人可以帮忙吗?

but I can't produce the .gcda file, could anyone help?

推荐答案

模拟器必须在生成gcda文件之前关闭。因此,当我运行GHUnit时,我必须先关闭此应用程序。 plist中还有一个设置,可以在应用关闭时将其杀死,而不是让它准备重新启动。

The simulator has to close before the gcda files get generated. So, when I run GHUnit I have to close this app first. There's also a setting in the plist to kill the app when it closes, rather than have it sit there ready to restart.

这篇关于GCOV的代码覆盖范围无法生成.gcda文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆