逻辑单元测试崩溃

问题描述:

我正在关注逻辑单元测试的指南:
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.