我刚刚将我的XCode更新到3.2.4,结果我的单元测试不再工作。我按照Scott Densmore的说明配置了目标和可执行文件,以便能够调试我的测试。
我已将我的测试目标(LogicTests)的基本SDK更改为iOS4.1,并更新了我的可执行文件(otest)的otest脚本路径。
然而,尽管我的应用在iPhone模拟器中运行,执行单元测试总是崩溃。当我尝试运行测试时,控制台会显示以下内容:
我已将我的测试目标(LogicTests)的基本SDK更改为iOS4.1,并更新了我的可执行文件(otest)的otest脚本路径。
然而,尽管我的应用在iPhone模拟器中运行,执行单元测试总是崩溃。当我尝试运行测试时,控制台会显示以下内容:
[Session started at 2010-09-15 23:28:37 +0200.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys014
Loading program into debugger…
Program loaded.
run
[Switching to process 12125]
warning: The target crashed on startup, maybe the shell is crashing.
"Try set start-with-shell 0" to workaround.
The Debugger has exited due to signal 6 (SIGABRT).The Debugger has exited due to signal 6 (SIGABRT).
我希望您能提供任何有关编程方面的帮助!提前感谢您。
祝好, 乔治