Note that there are some explanatory texts on larger screens.

plurals
  1. POWeird error message in Xcode 4.3 with LLDB
    primarykey
    data
    text
    <p>I am currently writing an iOS app with Xcode 4.3.2. In most parts of my code, debugging with LLDB works just fine. However at some point I am getting a strange message while stepping through my code. When I hover over an iVar, it says</p> <blockquote> <p>Error [IRForTarget]: Couldn't find Objective-C indirect ivar symbol OBJC_IVAR_$_MyFancyClass.iVar</p> </blockquote> <p>instead of showing me the value. However, in the <code>Variables View</code>, I can see it just fine. Until I'm selecting <code>Print Description of ...</code> that is, because then, Xcode crashes... When I use GDB, the hovering works but the type and values of the variable are wrong.</p> <p>I recon that there is something wrong with my code which in turn causes the debuggers to fail. However, the code runs fine. I'd love to provide some samplecode but the class is rather long and I can't pinpoint the exact location of my screwup. So has anybody encountered a similar behavior?</p> <p><strong>UPDATE:</strong> Actually, it seems as if this happens everywhere in my code, not just in some specific files. If it helps, while LLDB show the above message, GDB always shows an object of the Class that is owning the iVar, instead of the iVar itself. It looks as if there is something wrong with the memory management. For example, if I say something like</p> <pre><code>[notificationCenter addObserver:self selector:@selector(foo) name:bar object:objA]; </code></pre> <p>the selector is invoked even when I have</p> <pre><code>[notificationCenter postNotificationName:bar object:objB]; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload