逻辑单元测试崩溃 [英] Logic unit tests crash

查看:91
本文介绍了逻辑单元测试崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注逻辑单元测试的指南:
https://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/UnitTesting/02-Setting_Up_Unit_Tests_in_a_Project/setting_up.html

I'm following this guide about logic unit testing: https://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/UnitTesting/02-Setting_Up_Unit_Tests_in_a_Project/setting_up.html

我已将测试添加到现有项目中,就像在指令中一样,但是当我尝试在模拟器中运行它们时,我收到此错误:

I've added tests to my existing project just as in instruction, but when i try to run them in simulator, I'm getting this error:

堆栈追踪:

Stack trace:

另外,我试图创建全新的项目和重复程序,但问题仍然存在。 应用程序单元测试按预期运行。

Also, I've tried to create completely new project and repeat procedure, but the problem remains. Application unit testing runs as expected.

推荐答案

找到解决方案,Xcode 4.3设置 LLDB 作为所有方案中的默认调试器,我将其更改为 GDB (产品 - >编辑方案 - >测试 - >调试器),问题就消失了。导致崩溃的原因是另一个有趣的问题。

Found a solution, Xcode 4.3 set the LLDB as a default debugger in all of your schemes, I changed it to GDB (Product->Edit Scheme->Test->Debugger) and the problem disappears. Why it causes the crash is another interesting question.

这篇关于逻辑单元测试崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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