代码之家  ›  专栏  ›  技术社区  ›  mjdth

在iPhone模拟器中调试应用程序时堆栈溢出

  •  0
  • mjdth  · 技术社区  · 15 年前

    每次尝试在模拟器中调试应用程序时,我都会收到这样的消息:

    [Session started at 2010-05-11 16:16:52 -0500.]
    GNU gdb 6.3.50-20050815 (Apple version gdb-1467) (Wed Apr 21 06:57:21 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".sharedlibrary apply-load-rules all
    Attaching to process 51573.
    Program received signal:  “EXC_BAD_ACCESS”.
    Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)
    

    我环顾四周,发现了一些类似的情况,但它们似乎都与丢失的文件和额外的必要构建阶段有关。这里没有收到丢失文件的通知,因此我不确定从哪里开始修复此问题并重新运行应用程序。

    谢谢你的洞察力!

    编辑: 我有一些框架显示为红色(显然不是在我的系统上,因为我安装了一个新的SDK版本)。我假设这是问题所在,但我现在似乎在系统的任何地方都找不到uikit.framework或coregraphics.framework。

    编辑2: 浏览并在其他位置找到所有关联的框架,并更改了项目中的框架位置。组和文件中不再显示红色,但原始问题仍然存在。

    2 回复  |  直到 15 年前
        1
  •  1
  •   Mark Brackett    15 年前

    您可能正在引用一个已释放的对象。 Turn on NSZombie 以获得更好的细节。

        2
  •  0
  •   mjdth    15 年前

    我已经解决了这个问题:我必须进行修复才能实现 UITableViewCellContentView 在以前的SDK版本中,因为发生了崩溃。这个新版本显然解决了这个问题,所以我只需要拿出额外的实现。