如何修复此项目以暂停Xcode4中的断点?

时间:2011-06-05 07:14:05

标签: xcode4 debugging

我正在尝试运行此Xcode项目示例: http://developer.apple.com/library/mac/#samplecode/HID_Explorer/Introduction/Intro.html

我的操作系统版本是10.6.7所以,我将“Build Settings”面板中的“Base SDK”参数从“10.5”更改为“Latest Mac OS X(10.6)”。

如果按Cmd + R,应用程序将正常运行。 但是我在代码中设置了一个断点并尝试再次运行应用程序,应用程序变得不可访问(鼠标光标悬停在它上方时变成旋转的彩色圆圈),但是在Xcode中似乎没有出现断点。

当我尝试运行应用程序时,此消息显示在调试窗口中:

warning: This configuration supports "Darwin64" but is attempting to load
an executable of type i386 which is unlikely to work.
Attempting to continue.
&"warning: posix_spawn failed, trying execvp, error: 86\n"
[Switching to process 9602 thread 0x0]
warning: This configuration supports "Darwin" but is attempting to load
an executable of type i386:x86-64 which is unlikely to work.
Attempting to continue.
`/usr/lib/dyld' has changed; re-reading symbols.
warning: Inconsistent DBX_SYMBOL_SIZE

Pending breakpoint 1 - ""main.c":503" resolved

我使用Xcode4并且我怀疑更改其他项目设置应该解决我的问题,但我无法弄清楚哪一个。我必须更改哪个设置?

2 个答案:

答案 0 :(得分:2)

我想我找到了解决问题的方法。我还将“构建设置”中的“架构”设置从“标准(32/64位 - 英特尔)”更改为“32位英特尔”,现在可以使用。 实际上一些Carbon函数似乎不适用于64位应用程序: http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/Carbon64BitGuide/HIToolboxChanges/HIToolboxChanges.html

答案 1 :(得分:0)

我认为这是一种竞争条件,暂停其中一条线索......我是碳笨蛋。

相关问题