Xcode 7 - 代码覆盖率数据生成失败 [英] Xcode 7 - Code coverage data generation failed

查看:98
本文介绍了Xcode 7 - 代码覆盖率数据生成失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行测试时出现错误:

When I run my tests I get an error:


代码覆盖率数据生成失败。

无法从'UIDevice'检索配置文件数据文件。

Code coverage data generation failed.
Unable to retrieve the profile data files from 'UIDevice'.

在控制台上打印警告:


模拟器启动等待120秒超时,当前状态为1。

Timed out waiting 120 seconds for simulator to boot, current state is 1.

是什么原因?

推荐答案

如果要将项目与第三方动态框架集成,则可能需要在构建设置中添加路径。查找 - >构建设置 - >运行路径搜索路径,并确保它包含框架的路径。

If you are integrating your project with a 3rd party dynamic framework, you may need to add a path in your build settings. Look for ->Build Settings->"Runpath search paths" and make sure it includes the path to the framework.

在设置我的项目以使用我的团队一直在研究的框架之后,我自己才看到这个问题。更新此特定设置后,问题就消失了。就我而言,路径与我为框架搜索路径设置设置的路径相同。

I was just seeing this exact issue myself after setting up my a project to use a framework my team has been working on. After updating this specific setting, the problem went away. In my case, the path was identical to one I already had to set for the "Framework search paths" setting.

这篇关于Xcode 7 - 代码覆盖率数据生成失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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