gpt4 book ai didi

iphone - XCode 从 3.2.3 升级到 3.2.4 后,单元测试不再工作

转载 作者:行者123 更新时间:2023-12-03 20:00:42 25 4
gpt4 key购买 nike

我刚刚将 XCode 更新到 3.2.4,结果发现我的单元测试不再工作。我已经按照 instructions from Scott Densmore 配置了目标和可执行文件这样我就可以调试我的测试。

我确实将测试目标 (LogicTests) 的 Base 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).

如果您能提供任何帮助,我将不胜感激!提前致谢。

干杯,格奥尔格

最佳答案

我也刚刚遇到了这个问题。发现我可以通过取消选中 DYLD_FORCE_FLAT_NAMESPACE 环境变量来运行测试。似乎会引起一些可怕的问题。如果我了解更多原因,我会发布相关内容。

关于iphone - XCode 从 3.2.3 升级到 3.2.4 后,单元测试不再工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3722029/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com