在创建新方案后,xcode 4无法启动单元测试(带有链接器错误) [英] xcode 4 fails to initiate unit tests (with linker error) after I created a new scheme

查看:142
本文介绍了在创建新方案后,xcode 4无法启动单元测试(带有链接器错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的单元测试在xcode4中运行良好,直到我必须创建一个新的模式来编译一个包在我的设备上运行以进行测试。

My unit tests worked fine in xcode4 until I had to create a new schema to compile a package to run on my device for testing.

我所做的只是创建一个新的Target和一个新的Scheme,现在我尝试运行单元测试并得到以下错误:

All I did was creating a new Target and a new Scheme, now I try to run the unit tests and get the following error:

无法加载[...] Tests.octest中的测试包,因为发生了链接错误。 dyld可能找不到测试包链接的框架框架或库,可能是因为框架或库在链接时的安装路径不正确。

我打破了什么?

推荐答案

我在添加目标后遇到了Xcode 4的问题现有项目。我最终发现该项目的Xcode DerivedData已损坏。通过删除该数据,我使Xcode重建数据并使项目恢复正常。我在我的主库文件夹中找到了数据(〜/ Library / Developer / Xcode / DerivedData /)。

I've also run across problems with Xcode 4 after adding a target to an existing project. I eventually figured out that the Xcode DerivedData for the project was damaged. By deleting that data, I caused Xcode to rebuild the data and the project returned to normal. I found the data in my home Library folder (~/Library/Developer/Xcode/DerivedData/).

这篇关于在创建新方案后,xcode 4无法启动单元测试(带有链接器错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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